winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Substitution Filter break with Spaces in regex

Open OshidaBCF opened this issue 1 year ago • 3 comments

I'm trying to make a filter that would ignore any change of value to "smokeScreenOffset" image

I tried to make a regex for the whole array but it didn't worked in winmerge, while working on regex101

After further testing, it appears that a single space in the filter break everything

The filter "-45.0,\n" -> "-40.0,\n" works

but "-45.0,\n " -> "-40.0,\n " doesn't

i just got a new pc and managed to grab all the settings from my old pc, but it seems that it refuse to work properly (even if some other filters worked properly, even with spaces)

OshidaBCF avatar Mar 02 '24 15:03 OshidaBCF

old.txt new.txt

OshidaBCF avatar Mar 02 '24 15:03 OshidaBCF

Unfortunately, current Substitution filters only target differences. The attached image has one line of difference, but if there were two lines, "-45.0,\n " would have been applied.

sdottaka avatar Mar 02 '24 22:03 sdottaka

Ah i see, it only works "inside" a difference

OshidaBCF avatar Mar 02 '24 22:03 OshidaBCF