-
Notifications
You must be signed in to change notification settings - Fork 811
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
WW-4834 fixed faulty regex #157
Conversation
Could you wait a bit with merging this PR? I have asked somebody to take a look on this. |
Ok, I will wait. |
The expression did not seem to work at all until I escaped the slashes, changing Once I got it working, there then seems to be a bug in the new expression when matching on URLs that use IP addresses. The grouping has changed causing two problems with matching IP addresses.
For example, only IPs like the following will pass validation: After the commit above, any IP with 3 digits in the last octet will not pass validation: |
You are right, i forgot the grouping (meaning the or statements mean something completely different), i'll fix this ASAP
I don't see why this would be. I am not aware that a "/" is a special sign inside a java string or java RegEx. Or is it because this same regex is used in javascript regex validation (where the '/' sign does mean something). I'll change it back ASAP too |
…dress and escaped '/' to work in javascript
I think we are good here, thanks a lot for yours work :) |
@lukaszlenart Do you want me to merge this now, or am i still overlooking stuff? |
I would wait a bit and give Adam a chance to post a comment (if he wants to). No rush :) |
Looks good to me. All matching capabilities from prior to the optimizations seem to be there. |
No description provided.