mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for AWC-1326
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -126,8 +126,7 @@ function validateRegex(control, expression, requiresMatch, matchMessage, noMatch
|
|||||||
function validateName(control, message, showMessage)
|
function validateName(control, message, showMessage)
|
||||||
{
|
{
|
||||||
var result = true;
|
var result = true;
|
||||||
var pattern = /([\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\+\;]+)|([ ]+$)|([\.]+$)/;
|
var pattern = /([\"\*\\\>\<\?\/\:\|]+)|([ ]+$)|([\.]?[\.]+$)/;
|
||||||
|
|
||||||
var idx = control.value.search(pattern);
|
var idx = control.value.search(pattern);
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
{
|
{
|
||||||
@@ -136,5 +135,4 @@ function validateName(control, message, showMessage)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user