Skip to content

Commit 60b113f

Browse files
committed
chore: Fix lint
1 parent f0cbf01 commit 60b113f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/common-utils/src/drain/pattern-predicate.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ function tokensOf(template: string, options?: PatternRegexOptions): string[] {
8787

8888
// A template token as a regex: `<*>` and each mask become `wildcard`, the
8989
// rest is literal.
90-
function tokenRegex(token: string, masks: string[], wildcard: string): string {
91-
if (token === PATTERN_WILDCARD) return wildcard;
92-
if (masks.length === 0) return escapeRe2Literal(token);
93-
return token
90+
function tokenRegex(word: string, masks: string[], wildcard: string): string {
91+
if (word === PATTERN_WILDCARD) return wildcard;
92+
if (masks.length === 0) return escapeRe2Literal(word);
93+
return word
9494
.split(`<${masks[0]}>`)
9595
.map(part => tokenRegex(part, masks.slice(1), wildcard))
9696
.join(wildcard);

0 commit comments

Comments
 (0)