mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
Fix replace bug
This commit is contained in:
parent
32a9993b1e
commit
9e4aac1d14
1 changed files with 1 additions and 1 deletions
|
@ -41,5 +41,5 @@ function matchAt(content, index, match) {
|
||||||
|
|
||||||
// Replace oldString with newString at location index of content
|
// Replace oldString with newString at location index of content
|
||||||
function replaceAt(content, index, oldString, newString) {
|
function replaceAt(content, index, oldString, newString) {
|
||||||
return content.substr(0, index) + newString + content.substr(index, oldString.length);
|
return content.substr(0, index) + newString + content.substr(index + oldString.length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue