fix: field rename preview
This commit is contained in:
parent
51aaf27fda
commit
43d5916e52
@ -123,8 +123,9 @@ class RenameFields implements ITool {
|
|||||||
const match = patternRegex.exec(name);
|
const match = patternRegex.exec(name);
|
||||||
if (match) {
|
if (match) {
|
||||||
const toChange = evaluateChange(change, match);
|
const toChange = evaluateChange(change, match);
|
||||||
|
const preview = name.replace(new RegExp(patternRegex), toChange);
|
||||||
foundUpdates.push([
|
foundUpdates.push([
|
||||||
`${colorize(name, "red")} -> ${colorize(toChange, "green")}`,
|
`${colorize(name, "red")} -> ${colorize(preview, "green")}`,
|
||||||
() => {
|
() => {
|
||||||
applyRename(field, name, patternRegex, toChange);
|
applyRename(field, name, patternRegex, toChange);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user