Skip to content

Commit

Permalink
Repair swamp
Browse files Browse the repository at this point in the history
unfortunately the URL has to be found using its alt description
  • Loading branch information
dryo committed Nov 15, 2019
1 parent 1205053 commit f28be7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/swamp/extract.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function(page) {
var regex = /<img[^>]*src='(strips\/[^']*)'/;
var regex = /<img[^>]+src="([^"]+)"[^>]+alt="Swamp\s+Cartoon\s+of\s+the\s+Day/;
var match = regex.exec(page);
return match[1];
}

0 comments on commit f28be7c

Please sign in to comment.