Skip to content

[regex_filter] Improve the rule swap mechanism

The plugin was designed to store rules within an object rather than an array, hence if we remove a rule which is not tailing the list, then the key sequence will get broken. This used not cause any issues until the ordering function got implemented.

This MR fixes the issue by revamping the swap mechanism that's being used for moving items up and down.

Merge request reports