From 8476756ae3363aa4c10685f8804636de76aee77c Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 1 Sep 2023 13:49:08 -0600 Subject: [PATCH] fix: bug matching patterns (#1520) Co-authored-by: GitHub Action --- dist/index.js | Bin 1696785 -> 1696758 bytes dist/index.js.map | Bin 1702575 -> 1702548 bytes src/utils.ts | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 5acb1930a1c0f4b01217e92c88ec790238eaf2b0..c63e2d364305b12dba60c69cee3ca588816c2d8d 100644 GIT binary patch delta 123 zcmWm3xeY*20D$2<_kBLsCblqu0j!}@OJ1VUSwW)Jv4Ta^e#KXP^F6%RFz#Yg%hpS| ooU5>>M+s=qVZeli{~WmR;3GhY2r&|*$dE&#K#2F8`sHrI^<|G!E1SA%f=w;?5=aiF7M3lnwQ|!pon#T6eqkyrd;1nSRv=~rVi21Hh&h3n3y8Ua qmF7M3lnwQ`aQYHA9KIf=z30f|K=dYO62Ii)G7#Tx2b(*yG) z#HW8K6=QFoDaQ)LY(NZRa{w_X5OV=BHxTmxF)tAF0Wm)i3jnbo5DNjZFc6CXu_zFW Q0kJp`OKhJhC;9s}0H?1o?f?J) diff --git a/src/utils.ts b/src/utils.ts index 6d12ca92..7a07a1c2 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -997,7 +997,7 @@ export const getFilePatterns = async ({ } else { const pathParts = pattern.split('/') const lastPart = pathParts[pathParts.length - 1] - if (!lastPart.includes('.') && !lastPart.includes('*')) { + if (!lastPart.includes('.')) { return `${pattern}/**` } else { return pattern