提交 08bfe785 编写于 作者: M Matt Bierner

More restrictive regex for rename

上级 e56ebb48
......@@ -235,7 +235,7 @@ export class UpdateImportsOnFileRenameHandler {
// Workaround for https://github.com/Microsoft/TypeScript/issues/24968
const textChanges = edit.textChanges.map((change): Proto.CodeEdit => {
const match = change.newText.match(/\/[^\/]+$/g);
const match = change.newText.match(/\w\/[^\/]+$/g);
if (!match) {
return change;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册