Open BZinser opened 7 years ago
You have not moved the dashed to the end, the regex will only look for the dash in case allowSpaceAsDelimiter
is set to true.
Could you please try if this works for you, and I'll add it to the code.
'[,|'+(allowSpaceAsDelimiter ? '\\s':'')+'-]\\s*'
Well, I was close ;)
I moved it to the actual end as you suggested and it worked in Chrome, Firefox and IE.
When attempting to load html5 and date for the validator in FireFox ESR 31.2.0, the following stack dump is generated:
SyntaxError: invalid range in character class Stack:
Line 1091 is:
To fix the issue, I had to change it to (moved the dash to the end):