From 06823fbf1c2e763a5bf76c3990ca98fbbcd98691 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 14 May 2024 14:05:49 +0800 Subject: updated node_modules --- .../scripts/generate-identifier-regex.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js') diff --git a/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js b/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js index 7f753a95..f3fd9e9a 100644 --- a/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +++ b/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js @@ -13,7 +13,7 @@ let last = -1; const cont = require( "@unicode/unicode-" + version + "/Binary_Property/ID_Continue/code-points.js" ).filter(function (ch) { - return ch > 0x7f && search(start, ch, last + 1) == -1; + return ch > 0x7f && search(start, ch, last + 1) === -1; }); function search(arr, ch, starting) { @@ -40,13 +40,13 @@ function generate(chars) { for (let i = 0, at = 0x10000; i < chars.length; i++) { const from = chars[i]; let to = from; - while (i < chars.length - 1 && chars[i + 1] == to + 1) { + while (i < chars.length - 1 && chars[i + 1] === to + 1) { i++; to++; } if (to <= 0xffff) { - if (from == to) re += esc(from); - else if (from + 1 == to) re += esc(from) + esc(to); + if (from === to) re += esc(from); + else if (from + 1 === to) re += esc(from) + esc(to); else re += esc(from) + "-" + esc(to); } else { astral.push(from - at, to - from); -- cgit v1.2.3