Just convert the pattern into a RegExp...
This commit is contained in:
parent
4d862616ce
commit
698e2a5487
9 changed files with 62 additions and 107 deletions
2
lib/actions-util.test.js
generated
2
lib/actions-util.test.js
generated
|
|
@ -225,7 +225,9 @@ ava_1.default("patternIsSuperset()", (t) => {
|
|||
t.false(actionsutil.patternIsSuperset("feature-*", "**"));
|
||||
t.false(actionsutil.patternIsSuperset("a/**/c", "a/**/d"));
|
||||
t.false(actionsutil.patternIsSuperset("a/**/c", "a/**"));
|
||||
t.true(actionsutil.patternIsSuperset("a/**", "a/**/c"));
|
||||
t.true(actionsutil.patternIsSuperset("a/**/c", "a/main-**/c"));
|
||||
t.false(actionsutil.patternIsSuperset("a/**/b/**/c", "a/**/d/**/c"));
|
||||
t.false(actionsutil.patternIsSuperset("a/main-**/c", "a/**/c"));
|
||||
t.true(actionsutil.patternIsSuperset("/robin/*/release/*", "/robin/moose/release/goose"));
|
||||
t.false(actionsutil.patternIsSuperset("/robin/moose/release/goose", "/robin/*/release/*"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue