ecto / bleach

:no_entry_sign: minimalistic HTML sanitizer for node.js
119 stars 21 forks source link

The `delete match;` in youtube.js is invalid in strict mode #13

Open mattbasta opened 6 years ago

mattbasta commented 6 years ago

https://github.com/ecto/bleach/blob/master/filters/youtube.js#L10

This line of code is invalid in strict mode, which will prevent the library from being used with many JavaScript tools. It should be safe to just remove the delete statement.