Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Merge branch 'fix-windows-file-paths' of https://github.com/zacharygo…
Browse files Browse the repository at this point in the history
…lba/rollup-plugin-alias into zacharygolba-fix-windows-file-paths
  • Loading branch information
Rich-Harris committed Apr 7, 2017
2 parents 24a377d + 6f1f484 commit c2559ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const matches = (key, importee) => {
return importeeStartsWithKey && importeeHasSlashAfterKey;
};
const endsWith = (needle, haystack) => haystack.slice(-needle.length) === needle;
const isFilePath = id => /^\.?\//.test(id);
const isFilePath = id => new RegExp(`^\\.?\\${path.sep}`).test(id);
const exists = uri => {
try {
return fs.statSync(uri).isFile();
Expand Down

0 comments on commit c2559ab

Please sign in to comment.