diff options
author | Cyril Sobierajewicz <38043722+cyrilfretlink@users.noreply.github.com> | 2019-03-04 18:20:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 18:20:42 +0100 |
commit | 8a5fcc4d12c8526871d82cb5ea5760a32d1ae813 (patch) | |
tree | a63da343c66064f5cee134123e80f41bb02016b3 /src | |
parent | cb94750aafc73f93a2b7056517cd94a30a5149d7 (diff) | |
parent | 66c963c2282afbf948a262978d63421fa518eaec (diff) | |
download | purs-loader-8a5fcc4d12c8526871d82cb5ea5760a32d1ae813.tar.gz purs-loader-8a5fcc4d12c8526871d82cb5ea5760a32d1ae813.tar.zst purs-loader-8a5fcc4d12c8526871d82cb5ea5760a32d1ae813.zip |
Merge pull request #2 from cyrilfretlink/purescript@0.12.2
Version 4.0.0
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 8a2e468..28246e3 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -195,7 +195,7 @@ module.exports = function purescriptLoader(source, map) { | |||
195 | const matchErrorsSeparator = /\n(?=Error)/; | 195 | const matchErrorsSeparator = /\n(?=Error)/; |
196 | const errors = pscMessage.split(matchErrorsSeparator); | 196 | const errors = pscMessage.split(matchErrorsSeparator); |
197 | for (const error of errors) { | 197 | for (const error of errors) { |
198 | const matchErrLocation = /at (.+\.purs) line (\d+), column (\d+) - line (\d+), column (\d+)/; | 198 | const matchErrLocation = /at (.+\.purs):(\d+):(\d+) - (\d+):(\d+) \(line \2, column \3 - line \4, column \5\)/; |
199 | const [, filename] = matchErrLocation.exec(error) || []; | 199 | const [, filename] = matchErrLocation.exec(error) || []; |
200 | if (!filename) continue; | 200 | if (!filename) continue; |
201 | 201 | ||