From c6ffd3e91cdd67947a29d7b6371aa8337f902775 Mon Sep 17 00:00:00 2001 From: huangcheng Date: Sun, 13 Nov 2022 01:47:18 +0800 Subject: [PATCH] style: rename to camelCase --- packages/path/src/tokenizer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/path/src/tokenizer.ts b/packages/path/src/tokenizer.ts index 8236774441c..a74e2c20c2f 100644 --- a/packages/path/src/tokenizer.ts +++ b/packages/path/src/tokenizer.ts @@ -21,7 +21,7 @@ import { } from './tokens' import { bracketDContext, Context } from './contexts' -const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/ +const nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/ const fullCharCodeAtPos = (input: string, pos: number) => { if (String.fromCharCode) return input.codePointAt(pos) @@ -158,7 +158,7 @@ export class Tokenizer { default: if ( (ch > 8 && ch < 14) || - (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) + (ch >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(ch))) ) { ++this.state.pos } else { @@ -220,7 +220,7 @@ export class Tokenizer { } if ( (code > 8 && code < 14) || - (code >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(code))) + (code >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(code))) ) { string = slice(this.input, startPos, this.state.pos) break