Merge pull request #2873 from ForbesLindesay/patch-1

Use `i - 1` instead of `--i`
This commit is contained in:
Sebastian McKenzie 2015-11-06 19:40:07 -05:00
commit d7adedad3c

View File

@ -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];
});
}