Condition:
"foo\nbar" == "foo bar"
Evaluates to true in /tools, /test, and /examine pages, but if saved as a filter, it matches no edit.
On the contrary, condition:
"foo\r\nbar" == "foo bar"
Evaluates to false in /tools, /test, and /examine pages, but if saved as a filter, it matches all edits.
This has been observed in both Linux + Firefox and Windows + Edge (Chromium).
Original report:
Steps to replicate the issue (include links if applicable):
- Go to https://pl.wikiquote.org/w/index.php?title=Specjalna:Rejestr_nadu%C5%BCy%C4%87&wpSearchFilter=7&uselang=en
- See that there's no hit from page Użytkownik:Swam pl/brudnopis3
- Ensure you have permissions to examine AbuseFilter on an edit and go to https://pl.wikiquote.org/wiki/Specjalna:Filtr_nadu%C5%BCy%C4%87/examine/1618289?uselang=en
- Load filter 7 and execute
What happens?:
The filter recognizes an edit on the examine page but not when saving that edit.
What should have happened instead?:
The behavior for examine and during save should be the same. (The intention here was that the edit should be recognized by the filter).
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): plwikiquote
Other information (browser name/version, screenshots, etc.):