Skip to content

Commit

Permalink
fix: bug returning matched patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 17, 2023
1 parent 9726642 commit e9bc5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ export const getFilePatterns = async ({
} else {
const pathParts = pattern.split('/')
const lastPart = pathParts[pathParts.length - 1]
if (!lastPart.includes('.')) {
if (!lastPart.includes('.') && !lastPart.endsWith('*')) {
return `${pattern}/**`
} else {
return pattern
Expand Down

0 comments on commit e9bc5c4

Please sign in to comment.