diff --git a/src/tokenizer.ts b/src/tokenizer.ts index 58c262c..1214b72 100644 --- a/src/tokenizer.ts +++ b/src/tokenizer.ts @@ -457,10 +457,7 @@ function isString(ch: Char, dialect: Dialect): boolean { return stringStart.includes(ch); } -function isCustomParam( - state: State, - customParamType: NonNullable, -): boolean | undefined { +function isCustomParam(state: State, customParamType: NonNullable): boolean { return customParamType.some((regex) => { const reg = new RegExp(`^(?:${regex})`, 'uy'); return reg.test(state.input.slice(state.start));