From b1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 24 Nov 2025 20:54:57 +0100 Subject: Docs --- node_modules/slash/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 node_modules/slash/index.js (limited to 'node_modules/slash/index.js') diff --git a/node_modules/slash/index.js b/node_modules/slash/index.js new file mode 100644 index 0000000..1b7ee1e --- /dev/null +++ b/node_modules/slash/index.js @@ -0,0 +1,9 @@ +export default function slash(path) { + const isExtendedLengthPath = path.startsWith('\\\\?\\'); + + if (isExtendedLengthPath) { + return path; + } + + return path.replace(/\\/g, '/'); +} -- cgit v1.2.3