Permalink
Browse files

allow for older d.js versions

  • Loading branch information...
1 parent e362023 commit 681b578a9e8a119ff5ca67646d7aba983c34ddc8 @majuscule majuscule committed Jul 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/DuckPAN/Cmd/Server.pm
@@ -140,7 +140,7 @@ sub change_html {
for (@script) {
if (my $src = $_->attr('src')) {
- if ($src =~ m/^\/d\d{4}\.js/) {
+ if ($src =~ m/^\/d\d{3,4}\.js/) {
$_->attr('src','/?duckduckhack_js=1');
} elsif (substr($src,0,1) eq '/') {
$_->attr('src','http://'.$hostname.''.$_->attr('src'));

2 comments on commit 681b578

Owner

moollaza commented on 681b578 Jul 8, 2013

Thanks for doing this @nospampleasemam!

👍

Please sign in to comment.