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

Commit a8142d3

Browse files
committed
fix: fix regex for splitting files
License: MIT Signed-off-by: achingbrain <[email protected]>
1 parent 7bf2eca commit a8142d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils/to-path-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const toPathComponents = (path = '') => {
44
// split on / unless escaped with \
55
return (path
66
.trim()
7-
.match(/([^\\\][^/]|\\\/)+/g) || [])
7+
.match(/([^\\^/]|\\\/)+/g) || [])
88
.filter(Boolean)
99
}
1010

0 commit comments

Comments
 (0)