Closed Chinosu closed 5 months ago
Change regex pattern from ['\"](.+/[^'\"]*?)['\"] to ['\"](\.+\/[^'\"]*?)['\"], which now ignores import statements that do not start with at least one dot followed by a slash
['\"](.+/[^'\"]*?)['\"]
['\"](\.+\/[^'\"]*?)['\"]
For example:
./xyz [YES] .xyz [NO] /xyz [NO] ../../xyz [YES]
Change regex pattern from
['\"](.+/[^'\"]*?)['\"]
to['\"](\.+\/[^'\"]*?)['\"]
, which now ignores import statements that do not start with at least one dot followed by a slashFor example: