Skip to content

Commit

Permalink
[comic_addition.md] Improve example RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Mar 29, 2024
1 parent a016ca2 commit fd3fb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion info/comic_addition.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ It must return a string with an absolute or relative (to the `stripSource`) URL
#### Example 3
```
function(page) {
var regex = /<img[^>]*src="([^"]*\/wp-content\/uploads\/[^"]*)"/;
var regex = /<img[^>]*src="?([^ "]*\/wp-content\/uploads\/[^ "]*)/;
var match = regex.exec(page);
return match[1];
}
Expand Down

0 comments on commit fd3fb83

Please sign in to comment.