Make char position optional in TS stack (#96321)

This commit is contained in:
Andrew Casey 2020-04-27 18:37:50 -07:00 committed by GitHub
parent 3318e36c49
commit 3ecefe6d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ export class TypeScriptServerError extends Error {
if (!message) {
return '';
}
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+))?)\)?$/igm;
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
let serverStack = '';
while (true) {
const match = regex.exec(message);