mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(migrations): resolve text replacement issue (#59452)
Based on https://github.com/angular/angular/pull/59353#issuecomment-2580320424, fixes a text replacement issue that seems to cause code to be duplicated in some setups. PR Close #59452
This commit is contained in:
committed by
kirjs
parent
53c8dc6d70
commit
14fb8ce4c0
@@ -67,7 +67,7 @@ export function migrate(): Rule {
|
||||
for (const c of changes) {
|
||||
recorder
|
||||
.remove(c.data.position, c.data.end - c.data.position)
|
||||
.insertLeft(c.data.position, c.data.toInsert);
|
||||
.insertRight(c.data.position, c.data.toInsert);
|
||||
}
|
||||
tree.commitUpdate(recorder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user