Fleshgrinder / php-url-validator

In search of the perfect URL validation regex
MIT License
14 stars 7 forks source link

Adding test for slash-less host with query string #2

Closed jaydiablo closed 8 years ago

jaydiablo commented 8 years ago

Noticed this URL structure was being rejected as invalid when testing this library against a large list of real-world URLs. Added a test and a small fix to make the ending slash on the host optional. All other tests pass (except the expected failures in the diego regex tests)

Fleshgrinder commented 8 years ago

Many thanks for this fix. :blush:

jaydiablo commented 8 years ago

Thanks!