Browse Source

Modified absolutePath RegExp.

Windows didn't like this regular expression. Added normal slashes to the
mixture.
gh-109
Raoul v. R 9 years ago
committed by Luke Page
parent
commit
e7b3cddf55
  1. 2
      src/utils/path.js

2
src/utils/path.js

@ -1,6 +1,6 @@
// TODO does this all work on windows?
export const absolutePath = /^(?:\/|(?:[A-Za-z]:)?\\)/;
export const absolutePath = /^(?:\/|(?:[A-Za-z]:)?[\\|\/])/;
export function isAbsolute ( path ) {
return absolutePath.test( path );

Loading…
Cancel
Save