Skip to content

Commit

Permalink
support * for pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 7, 2024
1 parent 4082014 commit abb246e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ const Util = {
str = `${str}`;
pattern = `${pattern}`;

if (pattern === '*') {
return true;
}

// includes first
if (str.includes(pattern)) {
return true;
Expand Down

0 comments on commit abb246e

Please sign in to comment.