path-serializer 0.0.6-beta.2 → 0.0.6
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/cjs/main.cjs +1 -1
- package/dist/esm/main.js +1 -1
- package/package.json +1 -1
package/dist/cjs/main.cjs
CHANGED
|
@@ -1069,7 +1069,7 @@ const createDefaultPathMatchers = ()=>{
|
|
|
1069
1069
|
function transformCodeToPosixPath(code) {
|
|
1070
1070
|
return code.replace(// windows absolute path
|
|
1071
1071
|
// ignore http, https, file
|
|
1072
|
-
/(?<!
|
|
1072
|
+
/(?<![a-zA-Z])([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match, _diskName)=>{
|
|
1073
1073
|
return normalizeToPosixPath(match);
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
package/dist/esm/main.js
CHANGED
|
@@ -1060,7 +1060,7 @@ const createDefaultPathMatchers = ()=>{
|
|
|
1060
1060
|
function transformCodeToPosixPath(code) {
|
|
1061
1061
|
return code.replace(// windows absolute path
|
|
1062
1062
|
// ignore http, https, file
|
|
1063
|
-
/(?<!
|
|
1063
|
+
/(?<![a-zA-Z])([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match, _diskName)=>{
|
|
1064
1064
|
return normalizeToPosixPath(match);
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|