mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Re-enabled regular expression validation in JavaScript
- Changed regular expression definition for the name property in content model git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -80,7 +80,6 @@ function validateRegex(control, expression, requiresMatch, matchMessage, noMatch
|
|||||||
{
|
{
|
||||||
var result = true;
|
var result = true;
|
||||||
|
|
||||||
/*
|
|
||||||
var pattern = new RegExp(unescape(expression));
|
var pattern = new RegExp(unescape(expression));
|
||||||
var matches = pattern.test(control.value);
|
var matches = pattern.test(control.value);
|
||||||
|
|
||||||
@@ -97,7 +96,6 @@ function validateRegex(control, expression, requiresMatch, matchMessage, noMatch
|
|||||||
|
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user