Skip to content

Commit

Permalink
#24176 making posible to add parentheses and romoving white space (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyDotcms committed Jun 8, 2023
1 parent 5c4397c commit 5939d01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ function submitSchedule() {
//Based on the error invalid_alias_name_exception returned by the ES
//Alias must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]"}]
let indexAlias = dojo.byId("indexAlias").value.trim();
let aliasTestResult = /^(?=.{3,60}$)^(?![-_])[a-zA-Z0-9_-]+$/.test(indexAlias);
indexAlias = indexAlias.replace(/\s/g, '');
let aliasTestResult = /^(?=.{3,60}$)^(?![-_])[a-zA-Z0-9_()-]+$/.test(indexAlias);
if(!aliasTestResult) {
showDotCMSErrorMessage("<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "Invalid-Index-Alias")) %>");
Expand Down

0 comments on commit 5939d01

Please sign in to comment.