Skip to content

Commit

Permalink
fix: change name to avoid overriding JS variable (#19402)
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhepS authored Oct 23, 2024
1 parent 2d5edaf commit dec2c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/src/util/glob-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function globToRegex(glob: string, literalQuestionMark = false): string {
}
} else {
const processed = toEscape.reduce(
(seg, escape) => seg?.replace(escape.replace, escape.with),
(seg, escapeRule) => seg?.replace(escapeRule.replace, escapeRule.with),
segment
);
regex += processed;
Expand Down

0 comments on commit dec2c82

Please sign in to comment.