You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/05/04 17:18:27 UTC

svn commit: r940902 - /incubator/lcf/trunk/modules/framework/crawler-ui/editauthority.jsp

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+$)/;