If you looked at the page before commenting you’d know that PHP’s built-in URL parser is one of the implementations that is being tested. You’d also see that one of the requirements was to not match scheme-relative URLs (e.g. `//foo.bar`) like the ones your commit fixes.
The regular expressions presented do not conform to the URL Standard or to any RFC, but rather to the list of requirements on that page.
I applaud your work in improving PHP’s built-in URL parser.
The regular expressions presented do not conform to the URL Standard or to any RFC, but rather to the list of requirements on that page.
I applaud your work in improving PHP’s built-in URL parser.