diff options
| author | bors <bors@rust-lang.org> | 2022-10-20 17:59:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-20 17:59:14 +0000 |
| commit | 7741e3dc732b4b8db9621b9002abd92f1f949cee (patch) | |
| tree | 2dddb5731a7f92d8af9bbe53bf770720f3556222 | |
| parent | f3cce5feea047e61af84f371072a021a333ba69f (diff) | |
| parent | e05df93b8ee0936c37df8e368817dc201e07fb75 (diff) | |
| download | rust-7741e3dc732b4b8db9621b9002abd92f1f949cee.tar.gz rust-7741e3dc732b4b8db9621b9002abd92f1f949cee.zip | |
Auto merge of #13448 - yotamofek:python-ext-polyfill-workaround, r=Veykril
Workaround the python vscode extension's polyfill Fixes #13442 `String.replaceAll` and `String.replace` behave the same when given a (/g-flagged) Regex, so fix is very simple.
| -rw-r--r-- | editors/code/src/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 10e243dc896..0aa998db625 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -191,7 +191,7 @@ export class Config { const VarRegex = new RegExp(/\$\{(.+?)\}/g); export function substituteVSCodeVariableInString(val: string): string { - return val.replaceAll(VarRegex, (substring: string, varName) => { + return val.replace(VarRegex, (substring: string, varName) => { if (typeof varName === "string") { return computeVscodeVar(varName) || substring; } else { |
