diff --git a/index.js b/index.js index 60be99a..1b7ee1e 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ export default function slash(path) { - const isExtendedLengthPath = /^\\\\\?\\/.test(path); + const isExtendedLengthPath = path.startsWith('\\\\?\\'); if (isExtendedLengthPath) { return path;