incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r940902 - /incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp
Date Tue, 04 May 2010 15:18:27 GMT
Author: kwright
Date: Tue May  4 15:18:26 2010
New Revision: 940902

URL: http://svn.apache.org/viewvc?rev=940902&view=rev
Log:
Authorities need access to isRegularExpression() too.

Modified:
    incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp

Modified: incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp?rev=940902&r1=940901&r2=940902&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp (original)
+++ incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp Tue May  4 15:18:26
2010
@@ -199,6 +199,21 @@
 		return true;
 	}
 
+	function isRegularExpression(value)
+	{
+		try
+		{
+			var foo = "teststring";
+                        foo.search(value.replace(/\(\?i\)/,""));
+			return true;
+		}
+		catch (e)
+		{
+			return false;
+		}
+
+	}
+
 	function isInteger(value)
 	{
 		var anum=/(^\d+$)/;



Mime
View raw message