aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/sandbox/css-style-applier.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-05-22 13:11:38 -0400
committerGitHub <noreply@github.com>2022-05-22 13:11:38 -0400
commit756cfc027696901f0afc9b84bb439c67c8b620ad (patch)
tree954889395a53cd22d3d3f99782a4f5fb7c7e2624 /ext/js/dom/sandbox/css-style-applier.js
parent259a3031ce436f86b33c4f361e2a9f919fa9db49 (diff)
Use \f rather than \x0C for whitespace form feed (#2158)
Diffstat (limited to 'ext/js/dom/sandbox/css-style-applier.js')
-rw-r--r--ext/js/dom/sandbox/css-style-applier.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/dom/sandbox/css-style-applier.js b/ext/js/dom/sandbox/css-style-applier.js
index 6c45f13e..0f44df0a 100644
--- a/ext/js/dom/sandbox/css-style-applier.js
+++ b/ext/js/dom/sandbox/css-style-applier.js
@@ -53,8 +53,7 @@ class CssStyleApplier {
this._styleDataUrl = styleDataUrl;
this._styleData = [];
this._cachedRules = new Map();
- // eslint-disable-next-line no-control-regex
- this._patternHtmlWhitespace = /[\t\r\n\x0C ]+/g;
+ this._patternHtmlWhitespace = /[\t\r\n\f ]+/g;
this._patternClassNameCharacter = /[0-9a-zA-Z-_]/;
}