Abuse filter management

Abuse Filter navigation (Home | Recent filter changes | Examine past edits | Abuse log)
Jump to navigation Jump to search

Differences between versions

ItemVersion from 19:03, 3 February 2024 by Matěj SuchánekVersion from 17:03, 11 February 2024 by Matěj Suchánek
Basic information
Notes:
--2018/09/16--
--2018/09/16--
[[Topic:Uku4qhr6ul99he28]] --Matěj Suchánek
[[Topic:Uku4qhr6ul99he28]] --Matěj Suchánek


--2024/02/03--
--2024/02/03--
Now it's the other way around: [[Topic:Xyfr3kubffqw1bs7]]
Now it's the other way around: [[Topic:Xyfr3kubffqw1bs7]]


More restrictive regex. More robust filter. --Matěj Suchánek
More restrictive regex. More robust filter. --Matěj Suchánek
--2024/02/11--
Handle invalid additions. --Matěj Suchánek
Filter conditions
Conditions:
'/* wbsetclaim-update:2||1 */ [[Property:P213]]' in summary
(
& (
  pattern := '(^|\n)([0-9]{15}[0-9X]|somevalue|novalue)(\n|$)';
  pattern := '(^|\n)([0-9]{15}[0-9X]|somevalue|novalue)(\n|$)';
  ! string(added_lines) rlike pattern
  (
  & string(removed_lines) rlike pattern
  '/* wbsetclaim-update:2||1 */ [[Property:P213]]' in summary
  &! string(added_lines) rlike pattern
  & string(removed_lines) rlike pattern
  ) | (
  '/* wbsetclaim-create:2||1 */ [[Property:P213]]' in summary
  & (
  groups := get_matches('(?:^|\n)P213\n(.+)', string(added_lines));
  groups[1] !== false &! groups[1] rlike pattern
  )
)
)
)
&! equals_to_any(page_prefixedtitle, 'Q4115189', 'Q13406268', 'Q15397819')