-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Invalid regular expression on starting the service after upgrading to 13.1.0 #1354
Comments
Same thing happening here, but specifically on Safari (on Chrome there is no error), and not only in a Docker container, but also in local development. |
This package doesn't explicitly list the minimal JS requirements. It should work on all maintained Node.js versions (10 and above) but the browser compatibility is a concern. Incidentally this breaks this module in React Native projects. |
* Updated mobile phone number validator and test Added verification for bosnian mobile phone numbers * Update isMobilePhone.js Fixed bs locale * Update README.md Updated locale in readme
We definitely are pro backward compatibility, that was an oversight from our end; working on fixing that asap. |
@MladenZeljic -- could you please have a look at this and do a hot-fix? |
coz of backward compatibility issue #1354
same issue here, using iphone browsers and safari on macOS |
@profnandaa I have already seen one or two PR using lookbehind assertions in the past (as an example #1244). |
Hey @profnandaa thanks for notifying me about this and sorry about this oversight. I'll work on replacing these lookbehinds with something less "sugary". And I agree with @tux-tn |
same here for nativescript on iOS devices only |
patched version was released yesterday, can you check? 13.1.1 |
@tux-tn -- you know the easiest way we can do this (browser tests) with our current TravisCI pipeline? |
I noticed that this was also regressing on Node v6, so I have added v6 on our TravisCI pipeline for the time being to act as a proxy - #1357 ; but we need a browser solution if it's proximal. |
@profnandaa i know that mocha can run on browsers, i will try to work on it this week end. I'm also planning to add some missing tests (Actual coverge decreased from 100% to 98.16%) |
Thanks!
./na
On Fri, Jun 12, 2020 at 4:34 PM Sarhan Aissi ***@***.***> wrote:
@profnandaa <https://github.com/profnandaa> i know that mocha can run on
browsers, i will try to work on it this week end. I'm also planning to add
some missing tests (Actual coverge decreased from 100% to 98.16%)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1354 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB7ZEKL33G2SGIZKVBZZ5TRWIVG7ANCNFSM4N3CJ5FA>
.
--
Sent from a tiny device while on the move.
|
Forgot to close this, I think we should be good now? Let me know if there's anything further that needs to be done other than fixing our CI/CD scope. |
SyntaxError: Invalid regular expression: /^((((+|0{2})3876)|06)[0-6])((?<=4)\d{7}|(?<!4)\d{6})$/: Invalid group
Did not have this until yesterday (when I was on v13.0.0). When I was looking at npm, saw that a new version was upgraded just around 20 hours ago. Also the regular expression pointed out in the error was added in the new version:
Click here to view the changeset which includes the below regular expression
Error on starting service when the module is required:
Validator.js version: 13.1.0
Node.js version: v8.9.4
OS platform: macOS
Happened when running app in a docker container.
The text was updated successfully, but these errors were encountered: