diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-05-22 13:11:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 13:11:38 -0400 |
commit | 756cfc027696901f0afc9b84bb439c67c8b620ad (patch) | |
tree | 954889395a53cd22d3d3f99782a4f5fb7c7e2624 /ext/js/dom/simple-dom-parser.js | |
parent | 259a3031ce436f86b33c4f361e2a9f919fa9db49 (diff) |
Use \f rather than \x0C for whitespace form feed (#2158)
Diffstat (limited to 'ext/js/dom/simple-dom-parser.js')
-rw-r--r-- | ext/js/dom/simple-dom-parser.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/dom/simple-dom-parser.js b/ext/js/dom/simple-dom-parser.js index bc327f5e..f5489d5e 100644 --- a/ext/js/dom/simple-dom-parser.js +++ b/ext/js/dom/simple-dom-parser.js @@ -22,8 +22,7 @@ class SimpleDOMParser { constructor(content) { this._document = parse5.parse(content); - // eslint-disable-next-line no-control-regex - this._patternHtmlWhitespace = /[\t\r\n\x0C ]+/g; + this._patternHtmlWhitespace = /[\t\r\n\f ]+/g; } getElementById(id, root=null) { |