We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace
replaceAll
1 parent 6faae9e commit 4e9e419Copy full SHA for 4e9e419
src/Descriptor.ts
@@ -61,7 +61,7 @@ function escapedName(desc: Descriptor): string {
61
if (isSimpleIdentifier(desc.name)) {
62
return desc.name
63
}
64
- return '`' + desc.name.replaceAll('`', '``') + '`'
+ return '`' + desc.name.replace(/`/g, '``') + '`'
65
66
67
// Returns true if this name does not need to be backtick escaped
0 commit comments