nathan815 / TheSwanStation-Issues

Issue tracker for The Swan Station
https://theswanstation.net
0 stars 1 forks source link

URL parsed incorrectly #55

Open nathan815 opened 8 years ago

nathan815 commented 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


nathan815 commented 8 years ago

Original comment by Winston Smith (Bitbucket: Winston-Smith, GitHub: Winston-Smith):


also try : http://< and http://>

for some ";" unexpected bonus