path-serializer 0.0.5 → 0.0.6-beta.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/cjs/main.cjs CHANGED
@@ -1012,7 +1012,7 @@ const normalizeToPosixPath = (p)=>{
1012
1012
  return match;
1013
1013
  }
1014
1014
  const escaped = lodash_es_escapeRegExp(match);
1015
- return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
1015
+ return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`, 'g');
1016
1016
  }
1017
1017
  function splitPathString(str) {
1018
1018
  return str.split(/[\\/]/);
@@ -1067,7 +1067,7 @@ const createDefaultPathMatchers = ()=>{
1067
1067
  ;// CONCATENATED MODULE: ./src/transformCodeToPosixPath.ts
1068
1068
 
1069
1069
  function transformCodeToPosixPath(code) {
1070
- return code.replace(/([a-zA-Z]:\\)([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+\\)*/g, (match)=>{
1070
+ return code.replace(/([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match)=>{
1071
1071
  return normalizeToPosixPath(match);
1072
1072
  });
1073
1073
  }
package/dist/esm/main.js CHANGED
@@ -1003,7 +1003,7 @@ const normalizeToPosixPath = (p)=>{
1003
1003
  return match;
1004
1004
  }
1005
1005
  const escaped = lodash_es_escapeRegExp(match);
1006
- return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
1006
+ return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`, 'g');
1007
1007
  }
1008
1008
  function splitPathString(str) {
1009
1009
  return str.split(/[\\/]/);
@@ -1058,7 +1058,7 @@ const createDefaultPathMatchers = ()=>{
1058
1058
  ;// CONCATENATED MODULE: ./src/transformCodeToPosixPath.ts
1059
1059
 
1060
1060
  function transformCodeToPosixPath(code) {
1061
- return code.replace(/([a-zA-Z]:\\)([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+\\)*/g, (match)=>{
1061
+ return code.replace(/([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match)=>{
1062
1062
  return normalizeToPosixPath(match);
1063
1063
  });
1064
1064
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path-serializer",
3
- "version": "0.0.5",
3
+ "version": "0.0.6-beta.1",
4
4
  "description": "path-serializer",
5
5
  "keywords": [
6
6
  "snapshot",