From a7c4627dca3fd37babdbde6890bbc2fd97fe8668 Mon Sep 17 00:00:00 2001 From: huangcheng Date: Mon, 14 Nov 2022 10:03:28 +0800 Subject: [PATCH] style: rename to camelCase (#3533) --- 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