Created
December 20, 2016 23:22
-
-
Save apollo13/159529a5366ed2c0d8b66223a0541695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parseBacktrace: function (backtrace) { | |
if (!backtrace) { | |
return null; | |
} | |
let result = backtrace.match(/^(.+?)\s*:\s*(\d+)$/); | |
if (!result || result.length != 3) { | |
return backtrace; | |
} | |
return { | |
url: result[1], | |
line: result[2] | |
}; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment