Skip to content

Commit

Permalink
style: rename to camelCase (#3533)
Browse files Browse the repository at this point in the history
  • Loading branch information
hchlq committed Nov 14, 2022
1 parent 41d1720 commit a7c4627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/path/src/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7c4627

Please sign in to comment.