Skip to content

Commit

Permalink
Update tokenizer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Apr 30, 2024
1 parent 3986617 commit 6e7eb1e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,7 @@ function isString(ch: Char, dialect: Dialect): boolean {
return stringStart.includes(ch);
}

function isCustomParam(
state: State,
customParamType: NonNullable<ParamTypes['custom']>,
): boolean | undefined {
function isCustomParam(state: State, customParamType: NonNullable<ParamTypes['custom']>): boolean {
return customParamType.some((regex) => {
const reg = new RegExp(`^(?:${regex})`, 'uy');
return reg.test(state.input.slice(state.start));
Expand Down

0 comments on commit 6e7eb1e

Please sign in to comment.