[Mapbender-commits] r10324 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Nov 11 07:23:40 PST 2019


Author: armin11
Date: 2019-11-11 07:23:39 -0800 (Mon, 11 Nov 2019)
New Revision: 10324

Modified:
   trunk/mapbender/http/javascripts/mod_savewmc.js
Log:
Allow some more expressions

Modified: trunk/mapbender/http/javascripts/mod_savewmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.js	2019-11-11 14:28:16 UTC (rev 10323)
+++ trunk/mapbender/http/javascripts/mod_savewmc.js	2019-11-11 15:23:39 UTC (rev 10324)
@@ -362,8 +362,8 @@
 			attributes.isoTopicCat = isoTopicCat;
 
 			if(attributes.title != ""){
-				if(!attributes.title.match(/^[a-zA-Z0-9\- _]+$/)){
-                               		alert("Allowed characters for title are: A-Z, a-z, 0-9, -, , _");
+				if(!attributes.title.match(/^[a-zA-Z0-9\säöüÄÖÜß_\-]+$/)){
+                               		alert("Allowed characters for title are: A-Z, a-z, 0-9, -, _");
                                		return;
                         	}
 			}else{
@@ -372,8 +372,8 @@
 			}
 
 			if(attributes.abstract != ""){
-				if(!attributes.abstract.match(/^[a-zA-Z0-9\- _]+$/)){
-                               		alert("Allowed characters for abstract are: A-Z, a-z, 0-9, -, , _");
+				if(!attributes.abstract.match(/^[a-zA-Z0-9\säöüÄÖÜß_\-]+$/)){
+                               		alert("Allowed characters for abstract are: A-Z, a-z, 0-9, -, _");
                                		return;
 				}
 			}	
@@ -380,8 +380,8 @@
 
 
 			if(attributes.keywords != ""){
-				if(!attributes.keywords.match(/^[a-zA-Z0-9\- _]+$/)){
-                               		alert("Allowed characters for keywords are: A-Z, a-z, 0-9, -, , _");
+				if(!attributes.keywords.match(/^[a-zA-Z0-9\säöüÄÖÜß_\-]+$/)){
+                               		alert("Allowed characters for keywords are: A-Z, a-z, 0-9, -, _");
                                		return;
 				}
 			}



More information about the Mapbender_commits mailing list