We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad7d2fb commit bafc2f3Copy full SHA for bafc2f3
scripts/utils/formatElmCompilerErrors.js
@@ -27,7 +27,7 @@ module.exports = function formatElmCompilerErrors(messages) {
27
errors: errors
28
.map(x =>
29
x
30
- .replace(/(--\s[A-Z\s]+-+\s.*\.elm\n)/g, filename('$1'))
+ .replace(/(--\s[A-Z\s]+-+\s.*\.elm\r?\n)/g, filename('$1'))
31
.replace(/(\n\s*)(\^+)/g, '$1' + error('$2'))
32
.replace(/(\d+)(\|>)/g, '$1' + error('$2'))
33
)
0 commit comments