Skip to content

Commit 8c1b389

Browse files
committed
fix: don't split paths on ^ characters
1 parent f5d3a67 commit 8c1b389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ipfs-unixfs-importer/src/utils/to-path-components.js

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

0 commit comments

Comments
 (0)