diff options
author | rickyes <mail@zhoumq.cn> | 2020-04-10 12:18:40 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-06-19 17:46:37 +0300 |
commit | 9918bdf5cb07f58d230522244a372cbb1b510956 (patch) | |
tree | 66416049bf4d1617a9a004df7b07b1d830390363 /lib/internal/constants.js | |
parent | f0fb511e3ba9a80618ddb616c1678d046246fe4f (diff) |
lib: replace charCodeAt with fixed Unicode
PR-URL: https://github.com/nodejs/node/pull/32758
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Diffstat (limited to 'lib/internal/constants.js')
-rw-r--r-- | lib/internal/constants.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/internal/constants.js b/lib/internal/constants.js index dfa30bea306..bf539a9f37d 100644 --- a/lib/internal/constants.js +++ b/lib/internal/constants.js @@ -8,6 +8,10 @@ module.exports = { CHAR_LOWERCASE_A: 97, /* a */ CHAR_UPPERCASE_Z: 90, /* Z */ CHAR_LOWERCASE_Z: 122, /* z */ + CHAR_UPPERCASE_C: 67, /* C */ + CHAR_LOWERCASE_B: 98, /* b */ + CHAR_LOWERCASE_E: 101, /* e */ + CHAR_LOWERCASE_N: 110, /* n */ // Non-alphabetic chars. CHAR_DOT: 46, /* . */ |