You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this PR #2036contains-path was updated to version 1.0.0. Looks like, there is a regression related to false-positive match of folders like /foo-bar to zone.target: '/foo'
Folder structure:
Steps:
Declare no-restricted-paths so imports from '/server' are forbidden inside /server/two. (Pay attention, zone target is /two, not /two-new.
In this PR #2036
contains-path
was updated to version 1.0.0. Looks like, there is a regression related to false-positive match of folders like/foo-bar
tozone.target: '/foo'
Folder structure:
Steps:
'/server'
are forbidden inside/server/two
. (Pay attention, zone target is/two
, not/two-new
./server/one/a.js
from/server/two-new/a.js
Actual results:
Import is forbidden
Expected result:
Import is allowed
See a corresponding issue: jonschlinkert/contains-path#5
See a PR, with test case, reproducing the issue: #2090
The text was updated successfully, but these errors were encountered: