未验证 提交 2ddb2c5a 编写于 作者: A Armando Aguirre 提交者: GitHub

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.
上级 378ad1e1
......@@ -79,7 +79,7 @@ export class TypeScriptServerError extends Error {
if (!message) {
return '';
}
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
const regex = /(\btsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
let serverStack = '';
while (true) {
const match = regex.exec(message);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册