Skip to content

Commit 0f0f239

Browse files
authored
fix: regexp pattern (#3041)
1 parent 31f9e67 commit 0f0f239

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/web/fetch/data-url.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const encoder = new TextEncoder()
88
* @see https://mimesniff.spec.whatwg.org/#http-token-code-point
99
*/
1010
const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/
11-
const HTTP_WHITESPACE_REGEX = /[\u000A|\u000D|\u0009|\u0020]/ // eslint-disable-line
11+
const HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/ // eslint-disable-line
1212
const ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g // eslint-disable-line
1313
/**
1414
* @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point
1515
*/
16-
const HTTP_QUOTED_STRING_TOKENS = /[\u0009|\u0020-\u007E|\u0080-\u00FF]/ // eslint-disable-line
16+
const HTTP_QUOTED_STRING_TOKENS = /[\u0009\u0020-\u007E\u0080-\u00FF]/ // eslint-disable-line
1717

1818
// https://fetch.spec.whatwg.org/#data-url-processor
1919
/** @param {URL} dataURL */

0 commit comments

Comments
 (0)