When using an options.include or options.exclude the module resolution fails in Windows. Calling .search converts the dirPath to a regex, but on Windows the / create an invalid regex. This PR uses includes to check if the dirPath is part of the include or exclude options.
Hello,
When using an
options.include
oroptions.exclude
the module resolution fails in Windows. Calling.search
converts thedirPath
to a regex, but on Windows the/
create an invalid regex. This PR usesincludes
to check if the dirPath is part of the include or exclude options.Closes #30