We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c191ecd commit 46d9a97Copy full SHA for 46d9a97
src/managers/patterns.ts
@@ -1,8 +1,9 @@
1
/**
2
* Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string.
3
* The latter is due to the presence of the device path at the beginning of the UNC path.
4
+ * @todo rewrite to negative lookbehind with the next major release.
5
*/
-const DOUBLE_SLASH_RE = /(?<!^)\/{2,}/g;
6
+const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
7
8
export function transform(patterns: string[]): string[] {
9
return patterns.map((pattern) => removeDuplicateSlashes(pattern));
0 commit comments