Closed PoissonBallon closed 2 years ago
isAbsoluteURL regex doesn't work like expected
Impossible to add urlComponents.queryItems coz path is absolute :/
/connect/login is an absolute URL connect/login is an absolute URL
/connect/login
connect/login
/connect/login is not an absolute URL connect/login is not an absolute URL
I think error is the ? after the first group in the regex
?
Thank you for your report, I've added a new regular expression validated using NSRegularExpression and several tests.
NSRegularExpression
Thanks for your awesome works !!!
Bug Report
Summary
isAbsoluteURL regex doesn't work like expected
Current behavior
Impossible to add urlComponents.queryItems coz path is absolute :/
How to reproduce
/connect/login
is an absolute URLconnect/login
is an absolute URLExpected behavior
/connect/login
is not an absolute URLconnect/login
is not an absolute URLI think error is the
?
after the first group in the regex