Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] fix invalid phone regex #1116

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

revoltek-daniel
Copy link
Contributor

The dash at the end of the regex is interpreted as regex group in chrome and firefox so we have to escape it.

Error Message in Firefox:

<input pattern='/^(\+\d{1,4}|0+\d{1,5}|\(\d{1,5})[\d\s\/\(\)-]*\d+$/'> kann nicht überprüft werden, da '//^(\+\d{1,4}|0+\d{1,5}|\(\d{1,5})[\d\s\/\(\)-]*\d+$//v' keine gültige Regexp ist: invalid character in class in regular expression

The dash at the end of the regex is interpreted as regex group in chrome and firefox so we have to escape it
@mschwemer mschwemer merged commit 93f43f7 into in2code-de:master Sep 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants