Merge pull request #2873 from ForbesLindesay/patch-1
Use `i - 1` instead of `--i`
This commit is contained in:
commit
d7adedad3c
@ -56,7 +56,7 @@ export function get(key: string, ...args): string {
|
||||
|
||||
// replace $0 placeholders with args
|
||||
return msg.replace(/\$(\d+)/g, function (str, i) {
|
||||
return args[--i];
|
||||
return args[i - 1];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user