Skip to content

Commit 6e7eb1e

Browse files
authored
Update tokenizer.ts
1 parent 3986617 commit 6e7eb1e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tokenizer.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,7 @@ function isString(ch: Char, dialect: Dialect): boolean {
457457
return stringStart.includes(ch);
458458
}
459459

460-
function isCustomParam(
461-
state: State,
462-
customParamType: NonNullable<ParamTypes['custom']>,
463-
): boolean | undefined {
460+
function isCustomParam(state: State, customParamType: NonNullable<ParamTypes['custom']>): boolean {
464461
return customParamType.some((regex) => {
465462
const reg = new RegExp(`^(?:${regex})`, 'uy');
466463
return reg.test(state.input.slice(state.start));

0 commit comments

Comments
 (0)