openQA icon indicating copy to clipboard operation
openQA copied to clipboard

Fix pattern for needle tag

Open perlpunk opened this issue 3 months ago • 1 comments

Developer console showed me this error:

Pattern attribute value ^[A-Za-z0-9-_]+$ is not a valid regular expression:
Uncaught SyntaxError: Invalid regular expression: /^[A-Za-z0-9-_]+$/v:
Invalid character class

Apparently dashes have to be escaped. Moving it to the end of the character class (this would have fixed it for a perl regex) did not help.

Not sure if this can be tested somehow.

perlpunk avatar Oct 24 '24 12:10 perlpunk