Skip to content

Commit

Permalink
ci: Windows serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jun 22, 2024
1 parent 0aa0792 commit 9c568cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions playground/serializers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export const normalizeWindowsLogSerializer = {
result = result.replace(winNewLineReg, '/n')
result = result.replace(process.cwd().replace(winSepReg, '/'), '<PROJECT_ROOT>')

if (doesUseDoubleSlashAsPath(result)) {
result = result.replace(
`//a//vite-plugin-checker//vite-plugin-checker//playground-temp`,
'<PROJECT_ROOT>/playground-temp'
)
result = result.split('//').join('/')
}
// if (doesUseDoubleSlashAsPath(result)) {
result = result.replace(
/([a-zA-Z]:)?\/[a-zA-Z]\/vite-plugin-checker\/vite-plugin-checker\/playground-temp/g,
'<PROJECT_ROOT>/playground-temp'
)
result = result.split('//').join('/')
// }
}

return serialize(result)
Expand Down

0 comments on commit 9c568cd

Please sign in to comment.