Last active
July 22, 2019 20:49
-
-
Save daltonmenezes/78a542b40f5d01db3e90da41121bbb1b to your computer and use it in GitHub Desktop.
Get only path and line number of stack trace errors
This file contains hidden or 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
const getTrace = error => error.stack.match(/(?<=\().*(?=\))/g) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment