path-serializer 0.2.1 → 0.2.2
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/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -903,7 +903,7 @@ function __webpack_require__(moduleId) {
|
|
|
903
903
|
if (transformWin32Path) replaced = transformCodeToPosixPath(replaced);
|
|
904
904
|
replaced = applyMatcherReplacement(pathMatchers, replaced);
|
|
905
905
|
if (escapeDoubleQuotes) replaced = replaced.replace(/"/g, '\\"');
|
|
906
|
-
if (escapeEOL) replaced = replaced.replace(/\\r\\n/g, '
|
|
906
|
+
if (escapeEOL) replaced = replaced.replace(/\\r\\n/g, '\\n');
|
|
907
907
|
if (addDoubleQuotes) replaced = `"${replaced}"`;
|
|
908
908
|
return replaced;
|
|
909
909
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -878,7 +878,7 @@ function createSnapshotSerializer(options) {
|
|
|
878
878
|
if (transformWin32Path) replaced = transformCodeToPosixPath(replaced);
|
|
879
879
|
replaced = applyMatcherReplacement(pathMatchers, replaced);
|
|
880
880
|
if (escapeDoubleQuotes) replaced = replaced.replace(/"/g, '\\"');
|
|
881
|
-
if (escapeEOL) replaced = replaced.replace(/\\r\\n/g, '
|
|
881
|
+
if (escapeEOL) replaced = replaced.replace(/\\r\\n/g, '\\n');
|
|
882
882
|
if (addDoubleQuotes) replaced = `"${replaced}"`;
|
|
883
883
|
return replaced;
|
|
884
884
|
}
|