@stryke/path 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/slash.cjs +1 -1
- package/dist/slash.d.ts +2 -2
- package/dist/slash.mjs +1 -1
- package/package.json +1 -1
package/dist/slash.cjs
CHANGED
package/dist/slash.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Replace backslash to slash
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param path - The string to replace
|
|
5
5
|
* @returns The string with replaced backslashes
|
|
6
6
|
*/
|
|
7
|
-
export declare function slash(
|
|
7
|
+
export declare function slash(path: string): string;
|
package/dist/slash.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function slash(r){return r.replace(/\\/g,"/")}
|
|
1
|
+
export function slash(r){return r.startsWith("\\\\?\\")?r:r.replace(/\\/g,"/")}
|