Skip to content

Commit

Permalink
Merge pull request #1276 from mikecappella/public/9.1
Browse files Browse the repository at this point in the history
Fixes to RE
  • Loading branch information
michaelherger authored Jan 2, 2025
2 parents 45903bd + 9a214c4 commit e688d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/Web/Template/SkinManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ sub _parseURIs {

return $text unless $text;

if (!($text =~ s!\b(https?://[A-Za-z0-9\-_\.\!~*'();/?:@%&=+$,]+)!<a href=\"$1\" target=\"_blank\" class="link">$1</a>!igo)) {
if (!($text =~ s!\b(https?://[-A-Z\d_.~*'();/?:@%&=+,#\$\!]+)!<a href=\"$1\" target=\"_blank\" class="link">$1</a>!igo)) {
# handle emusic-type urls which don't have http://
$text =~ s!\b(www\.[A-Za-z0-9\-_\.\!~*'();/?:@%&=+$,]+)!<a href=\"http://$1\" target=\"_blank\">$1</a>!igo;
$text =~ s!\b(www\.[-A-Z\d_.~*'();/?:@%&=+,#\$\!]+)!<a href=\"http://$1\" target=\"_blank\">$1</a>!igo;
}

return $text;
Expand Down

0 comments on commit e688d25

Please sign in to comment.