fix: bug returning files with matched patterns (#1648)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user