AliBasicCoder/fs-pro

Bug: Shape.Pattern("string") matches any thing containing string

Closed this issue · 0 comments

example:
create a foler like the following

test_dir
--- file.js
--- file.js.something
const shape = new Shape({
  [__rest]: Shape.Pattern("*.js")
});

shape.validate("./test_dir");

actual behavior:
run normally

expected behavior:
return an IFF error at ./test_dir/file.js.something