Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitution Filter break with Spaces in regex #2231

Open
OshidaBCF opened this issue Mar 2, 2024 · 3 comments
Open

Substitution Filter break with Spaces in regex #2231

OshidaBCF opened this issue Mar 2, 2024 · 3 comments

Comments

@OshidaBCF
Copy link

OshidaBCF commented Mar 2, 2024

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
Copy link
Author

old.txt
new.txt

@sdottaka
Copy link
Member

sdottaka commented Mar 2, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants