X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=lib%2Findex.js;h=3f37e3cc89a84ac66ab87aac80dbb6638df26aa2;hb=9dad774b4693ddda09b491ee7f7e0099f8fb1a61;hp=e648869cbf2514633095431f070b2192ead72879;hpb=d3f40b6f0b0f507308f8dfd91e9cf6d4745dbce8;p=github%2Ffretlink%2Fpurs-loader.git diff --git a/lib/index.js b/lib/index.js index e648869..3f37e3c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -205,7 +205,7 @@ module.exports = function purescriptLoader(source, map) { for (var _iterator = errors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var error = _step.value; - var matchErrLocation = /at (.+\.purs) line (\d+), column (\d+) - line (\d+), column (\d+)/; + var matchErrLocation = /at (.+\.purs):(\d+):(\d+) - (\d+):(\d+) \(line \2, column \3 - line \4, column \5\)/; var _ref2 = matchErrLocation.exec(error) || [], _ref3 = _slicedToArray(_ref2, 2),