Added word boundary on tsserver regex (#101598)
Adds a word boundary on the tsserver regex so that it doens't get confused by other file names.
This commit is contained in:
parent
378ad1e184
commit
2ddb2c5a72
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export class TypeScriptServerError extends Error {
|
||||||
if (!message) {
|
if (!message) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
|
const regex = /(\btsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
|
||||||
let serverStack = '';
|
let serverStack = '';
|
||||||
while (true) {
|
while (true) {
|
||||||
const match = regex.exec(message);
|
const match = regex.exec(message);
|
||||||
|
|
Loading…
Reference in a new issue