… | |
… | |
10 | } |
10 | } |
11 | |
11 | |
12 | my @patterns = ( |
12 | my @patterns = ( |
13 | # urls, just a heuristic |
13 | # urls, just a heuristic |
14 | qr{( |
14 | qr{( |
15 | (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ |
15 | (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ |
16 | [^.] # do not include a trailing dot, its wrong too often |
16 | [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often |
17 | )}x, |
17 | )}x, |
18 | |
18 | |
19 | # shell-like argument quoting |
19 | # shell-like argument quoting |
20 | qr{\G [\ \t|&;<>()] *( |
20 | qr{\G [\ \t|&;<>()] *( |
21 | (?: |
21 | (?: |