Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: fix regex for splitting files
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: achingbrain <[email protected]>
  • Loading branch information
achingbrain committed Dec 4, 2018
1 parent 7bf2eca commit a8142d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/to-path-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const toPathComponents = (path = '') => {
// split on / unless escaped with \
return (path
.trim()
.match(/([^\\\][^/]|\\\/)+/g) || [])
.match(/([^\\^/]|\\\/)+/g) || [])
.filter(Boolean)
}

Expand Down

0 comments on commit a8142d3

Please sign in to comment.