Skip to content

Commit bafc2f3

Browse files
committed
fix: Fix file path color highlightning in the error output on Windows
1 parent ad7d2fb commit bafc2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utils/formatElmCompilerErrors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function formatElmCompilerErrors(messages) {
2727
errors: errors
2828
.map(x =>
2929
x
30-
.replace(/(--\s[A-Z\s]+-+\s.*\.elm\n)/g, filename('$1'))
30+
.replace(/(--\s[A-Z\s]+-+\s.*\.elm\r?\n)/g, filename('$1'))
3131
.replace(/(\n\s*)(\^+)/g, '$1' + error('$2'))
3232
.replace(/(\d+)(\|>)/g, '$1' + error('$2'))
3333
)

0 commit comments

Comments
 (0)