Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dzimbeck committed Sep 21, 2024
1 parent 7ccbd1d commit cc6abdf
Show file tree
Hide file tree
Showing 6 changed files with 2,764 additions and 1,018 deletions.
5 changes: 1 addition & 4 deletions assets/js/jpurify.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@
if (/\W/.test(args[1])) {
var regex = /^(\w+script|data):/gi,
whitespace = /[\x00-\x20\xA0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;

//console.log('args type: ', typeof(args));
//console.log('args: ', args);
if (args[1] != -1 && args[1].replace(whitespace,'').match(regex)) {
if (args[1].replace(whitespace,'').match(regex)) {
return false;
}
}
Expand Down
Loading

0 comments on commit cc6abdf

Please sign in to comment.