Skip to content

Commit 3d88f22

Browse files
committed
tweak variable names for exponent fix
1 parent 2722931 commit 3d88f22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/tokenize.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,14 @@ module.exports = function tokenize (input, options) {
320320

321321
// Exponential number notation with minus or plus: 1e-10, 1e+10
322322
if (regex === wordEndNum || code === period) {
323-
let ncode1 = css.charCodeAt(next),
324-
ncode2 = css.charCodeAt(next + 1),
325-
ncode3 = css.charCodeAt(next + 2);
323+
let ncode = css.charCodeAt(next),
324+
ncode1 = css.charCodeAt(next + 1),
325+
ncode2 = css.charCodeAt(next + 2);
326326

327327
if (
328-
(ncode1 === lowerE || ncode1 === upperE) &&
329-
(ncode2 === minus || ncode2 === plus) &&
330-
(ncode3 >= digit0 && ncode3 <= digit9)
328+
(ncode === lowerE || ncode === upperE) &&
329+
(ncode1 === minus || ncode1 === plus) &&
330+
(ncode2 >= digit0 && ncode2 <= digit9)
331331
) {
332332
wordEndNum.lastIndex = next + 2;
333333
wordEndNum.test(css);

0 commit comments

Comments
 (0)