r17896 by fschmid - JavaScript Editor: don't allow . in function names.

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 21 22:48:30 UTC 2012


Author: fschmid
Date: Wed Nov 21 22:48:29 2012
New Revision: 17896

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17896
Log:
JavaScript Editor: don't allow . in function names.

Modified:
    trunk/Scribus/scribus/ui/javadocs.cpp

Modified: trunk/Scribus/scribus/ui/javadocs.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17896&path=/trunk/Scribus/scribus/ui/javadocs.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/javadocs.cpp (original)
+++ trunk/Scribus/scribus/ui/javadocs.cpp Wed Nov 21 22:48:29 2012
@@ -82,7 +82,7 @@
 	if (dia.exec())
 	{
 		nam = dia.getEditText();
-		nam.replace( QRegExp("[\\s\\/\\{\\[\\]\\}\\<\\>\\(\\)\\%]"), "_" );
+		nam.replace( QRegExp("[\\s\\/\\{\\[\\]\\}\\<\\>\\(\\)\\%\\.]"), "_" );
 		Editor* dia2 = new Editor(this, "", View);
 		dia2->EditTex->setText("function "+nam+"()\n{\n}");
 		if (dia2->exec())




More information about the scribus-commit mailing list