Enable eslint rule no-useless-escape (#55138)

This commit is contained in:
Jake Bailey
2023-07-28 16:02:38 -07:00
committed by GitHub
parent 23eabea067
commit 6a96b9767e
32 changed files with 50 additions and 51 deletions

View File

@@ -366,7 +366,7 @@ export namespace Debug {
}
else {
const text = Function.prototype.toString.call(func);
const match = /^function\s+([\w\$]+)\s*\(/.exec(text);
const match = /^function\s+([\w$]+)\s*\(/.exec(text);
return match ? match[1] : "";
}
}