Skip to content

Commit

Permalink
Improve performance (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
emagers authored May 9, 2023
1 parent 8659627 commit 03cce86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function slash(path) {
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
const isExtendedLengthPath = path.startsWith('\\\\?\\');

if (isExtendedLengthPath) {
return path;
Expand Down

0 comments on commit 03cce86

Please sign in to comment.