WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.43k stars 797 forks source link

Substitution Filter break with Spaces in regex #2231

Open OshidaBCF opened 7 months ago

OshidaBCF commented 7 months ago

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 commented 7 months ago

old.txt new.txt

sdottaka commented 7 months ago

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.

OshidaBCF commented 7 months ago

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