Mention Gruber's regexp in the LICENSE.

This commit is contained in:
Mayhem 2013-08-20 17:19:04 +02:00
parent 5aff534c36
commit 3f04351e48
2 changed files with 4 additions and 1 deletions

View File

@ -34,5 +34,8 @@ audio/beep.wav from http://freesound.org/people/pierrecartoons1979/sounds/90112/
Font Awesome by Dave Gandy (http://fontawesome.io)
license: http://fontawesome.io/license/
URL-matching regular expression by John Gruber (http://df4.us/fv9)
"Consider it public domain."
seaweedchan/4chan-x (https://github.com/seaweedchan/4chan-x)
license: https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -3,7 +3,7 @@ Linkify =
return if g.VIEW is 'catalog' or !Conf['Linkify']
# gruber revised + magnet support
# http://rodneyrehm.de/t/url-regex.html
# http://df4.us/fv9
@catchAll = /\b([a-z][\w-]+:(\/{1,3}|[a-z0-9%]|\?(dn|x[lts]|as|kt|mt|tr)=)|www\d{0,3}\.|[a-z0-9.\-]+\.[a-z]{2,4}\/)([^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/g
Post::callbacks.push