Skip to content

Commit

Permalink
chore: test ci on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Sep 23, 2024
1 parent d45dd26 commit 0bd5312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helpers/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const escapedCwdRegExp = new RegExp(
"g"
);
const normalize = str => {
let normalizedStr = str.split(CURRENT_CWD).join("<cwd>");
let normalizedStr = str.split(CURRENT_CWD).join("<cwd>").split(CURRENT_CWD.replace("\\\\", "\\")).join("<cwd>");
if (CURRENT_CWD.startsWith("/")) {
normalizedStr = normalizedStr.replace(
new RegExp(quoteMeta(CURRENT_CWD), "g"),
Expand Down

0 comments on commit 0bd5312

Please sign in to comment.