Changeset 3397 for trunk/gsdl/perllib


Ignore:
Timestamp:
2002-08-23T15:22:34+12:00 (22 years ago)
Author:
jrm21
Message:

minor change to the regex for marking up urls (to allow #anchor at the end)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r3352 r3397  
    410410    # assume hostnames are \.\w\- only, then might have a trailing '/.*'
    411411    # assume URI doesn't finish with a '.'
    412     $text =~ s@((http|ftp|https)://[\w\-]+(\.[\w\-]+)*/?((&amp;|\.)?[\w\?\=\-_/~]+)*)@<a href=\"$1\">$1<\/a>@g;
     412    $text =~ s@((http|ftp|https)://[\w\-]+(\.[\w\-]+)*/?((&amp;|\.)?[\w\?\=\-_/~]+)*(\#.*)?)@<a href=\"$1\">$1<\/a>@g;
    413413
    414414
Note: See TracChangeset for help on using the changeset viewer.