implement clientside validation for textbox, stop complaining about $ in regular expressions of validator and fix attribute name from "preg" to "validator" on server-side

This commit is contained in:
Ralf Becker
2014-06-05 15:47:23 +00:00
parent 76fc9f97dc
commit a45525949b
3 changed files with 52 additions and 8 deletions

View File

@ -70,6 +70,12 @@
str += '$';
break;
}
// check for regular expression "/ $/"
if (_p.expr.charAt(_p.pos) == _p.expr.charAt(0))
{
str += '$';
break;
}
if (str)
{
_tree.push(str); str = "";