Revision: 1167
          http://stripes.svn.sourceforge.net/stripes/?rev=1167&view=rev
Author:   bengunter
Date:     2009-10-16 17:53:35 +0000 (Fri, 16 Oct 2009)

Log Message:
-----------
Applied fix for STS-685 from 1.5.x branch.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/tag/FieldMetadataTag.java

Modified: trunk/stripes/src/net/sourceforge/stripes/tag/FieldMetadataTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/FieldMetadataTag.java 
2009-10-16 17:51:21 UTC (rev 1166)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/FieldMetadataTag.java 
2009-10-16 17:53:35 UTC (rev 1167)
@@ -180,7 +180,9 @@
                             data.trim());
                 if (data.mask() != null)
                     fieldInfo.append(fieldInfo.length() > 0 ? "," : 
"").append("mask:")
-                            .append("/^").append(data.mask()).append("$/");
+                            .append("new RegExp(")
+                            .append(JavaScriptBuilder.quote("^" + 
data.mask().toString() + "$"))
+                            .append(")");
                 if (data.minlength() != null)
                     fieldInfo.append(fieldInfo.length() > 0 ? "," : 
"").append("minlength:")
                             .append(data.minlength());


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to