Merge 1.4 to HEAD

svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4340 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4350 .
   svn resolved root\projects\3rd-party\.classpath
   svn resolved root\projects\repository\source\java\org\alfresco\repo\workflow\WorkflowInterpreter.java
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4379 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4380 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4420 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4421 .
   svn resolved root\projects\3rd-party\.classpath


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4655 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-12-19 14:24:45 +00:00
parent a35a66a524
commit cfa7ffa439

View File

@@ -126,12 +126,12 @@ function validateRegex(control, expression, requiresMatch, matchMessage, noMatch
function validateName(control, message, showMessage)
{
var result = true;
var pattern = /[\"\*\\\>\<\?\/\:\|\%\&\+\;\xA3\xAC]+/;
var pattern = /([\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\+\;]+)|([ ]+$)|([\.]+$)/;
var idx = control.value.search(pattern);
if (idx != -1)
{
informUser(control, control.value.charAt(idx) + " " + message, showMessage);
informUser(control, "'" + control.value.charAt(idx) + "' " + message, showMessage);
result = false;
}