diff options
author | hackademix | 2018-08-01 18:53:38 +0200 |
---|---|---|
committer | hackademix | 2018-08-01 18:53:38 +0200 |
commit | ce541c4a53679934e349b2bc85b2b18843a4146d (patch) | |
tree | 7b3a64d4b1ca6410eaa76a3a21acbaf44d8e5cc2 /src | |
parent | 9782ab02d53e9c37100d8e3e976fa4d90c1c1abe (diff) | |
download | noscript-ce541c4a53679934e349b2bc85b2b18843a4146d.tar.gz noscript-ce541c4a53679934e349b2bc85b2b18843a4146d.tar.xz noscript-ce541c4a53679934e349b2bc85b2b18843a4146d.zip |
Broader detection of UTF-8 encoding in responses.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ResponseMetaData.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ResponseMetaData.js b/src/lib/ResponseMetaData.js index 17e1608..0d86745 100644 --- a/src/lib/ResponseMetaData.js +++ b/src/lib/ResponseMetaData.js @@ -27,7 +27,7 @@ class ResponseMetaData { } get isUTF8() { - return /^utf-8$/i.test(this.charset); + return /^utf-?8$/i.test(this.charset); } forceUTF8() { |