Ensure we replace only on when starting with
This commit is contained in:
parent
41405ea39d
commit
6688ccf1ab
|
@ -53,8 +53,12 @@ export function updateFilterKeys(
|
|||
)
|
||||
if (possibleKey && possibleKey.original !== possibleKey.updated) {
|
||||
// only replace the first, not replaceAll
|
||||
filter[key.replace(possibleKey.original, possibleKey.updated)] =
|
||||
filter[key]
|
||||
filter[
|
||||
key.replace(
|
||||
new RegExp(`^${possibleKey.original}\\.`),
|
||||
`${possibleKey.updated}.`
|
||||
)
|
||||
] = filter[key]
|
||||
delete filter[key]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue