Skip to content

Commit

Permalink
chore(alias): debug CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Oct 3, 2023
1 parent 4fcc32a commit fb4990c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/alias/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ function matches(pattern: string | RegExp, importee: string) {
if (pattern instanceof RegExp) {
return pattern.test(importee);
}

if (importee.length < pattern.length) {
return false;
}

if (importee === pattern) {
return true;
}

// eslint-disable-next-line prefer-template
return importee.startsWith(pattern + '/');
}
Expand Down

0 comments on commit fb4990c

Please sign in to comment.