We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c7333 commit dc4b38aCopy full SHA for dc4b38a
1 file changed
fallback/single-byte.js
@@ -11,14 +11,14 @@ export const assertEncoding = (encoding) => {
11
throw new RangeError('Unsupported encoding')
12
}
13
14
-const f = 0xff_fd
+const r = 0xff_fd
15
16
function getEncoding(encoding) {
17
assertEncoding(encoding)
18
if (encoding === xUserDefined) return Array.from({ length: 128 }, (_, i) => 0xf7_80 + i)
19
if (encoding === iso8i) encoding = 'iso-8859-8'
20
let prev = 127
21
- return encodings[encoding].map((x) => (x === f ? x : (prev += x))) // eslint-disable-line no-return-assign
+ return encodings[encoding].map((x) => (x === r ? x : (prev += x))) // eslint-disable-line no-return-assign
22
23
24
const mappers = new Map()
0 commit comments