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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 21 04:26:55 PDT 2019


Author: hollsandre
Date: 2019-10-21 04:26:55 -0700 (Mon, 21 Oct 2019)
New Revision: 10294

Modified:
   trunk/mapbender/http/javascripts/mod_savewmc.js
Log:
small fix to allow hyphen, dot and whitespace


Modified: trunk/mapbender/http/javascripts/mod_savewmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.js	2019-10-21 06:55:34 UTC (rev 10293)
+++ trunk/mapbender/http/javascripts/mod_savewmc.js	2019-10-21 11:26:55 UTC (rev 10294)
@@ -362,7 +362,7 @@
 			attributes.isoTopicCat = isoTopicCat;
 
 			if(attributes.title != ""){
-				if(!attributes.title.match(/^[a-zA-Z0-9]+$/)){
+				if(!attributes.title.match(/^[a-zA-Z0-9.- ]+$/)){
                                		alert("Allowed characters for title are: A-Z, a-z, 0-9, -, _");
                                		return;
                         	}
@@ -372,7 +372,7 @@
 			}
 
 			if(attributes.abstract != ""){
-				if(!attributes.abstract.match(/^[a-zA-Z0-9]+$/)){
+				if(!attributes.abstract.match(/^[a-zA-Z0-9.- ]+$/)){
                                		alert("Allowed characters for abstract are: A-Z, a-z, 0-9, -, _");
                                		return;
 				}
@@ -380,7 +380,7 @@
 
 
 			if(attributes.keywords != ""){
-				if(!attributes.keywords.match(/^[a-zA-Z0-9]+$/)){
+				if(!attributes.keywords.match(/^[a-zA-Z0-9.- ]+$/)){
                                		alert("Allowed characters for keywords are: A-Z, a-z, 0-9, -, _");
                                		return;
 				}



More information about the Mapbender_commits mailing list