Open nathan815 opened 8 years ago
Originally reported by: Winston Smith (Bitbucket: Winston-Smith, GitHub: Winston-Smith)
I noticed when Cheetah posted an URL earlier that there was a flaw in parsing.
In chat : http://www.host.ext/path)/file.ext The url will be broken right before ")".
Whereas : http://www.host.ext/(path)/file.ext will break right after the ")".
Suggested fix : Use, as regular expression /(http://\S+)/
\S+ (capitalized) will capture anything not being a space character.
Cheers, Joe/Winston
Original comment by Winston Smith (Bitbucket: Winston-Smith, GitHub: Winston-Smith):
also try : http://< and http://>
for some ";" unexpected bonus
Originally reported by: Winston Smith (Bitbucket: Winston-Smith, GitHub: Winston-Smith)
I noticed when Cheetah posted an URL earlier that there was a flaw in parsing.
In chat : http://www.host.ext/path)/file.ext The url will be broken right before ")".
Whereas : http://www.host.ext/(path)/file.ext will break right after the ")".
Suggested fix : Use, as regular expression /(http://\S+)/
\S+ (capitalized) will capture anything not being a space character.
Cheers, Joe/Winston