Page MenuHomePhabricator

AWB "Find and Replace" Normal mode does not add replacements to edit summary
Open, Needs TriagePublicBUG REPORT

Description

Description:
When using AWB's "Find and Replace" feature with Normal mode selected, replacements are successfully applied (as shown in diff preview), but the replacements are not added to the edit summary, despite "Add replacements to edit summary" being enabled.

Steps to Reproduce:

  1. Set up a Find and Replace rule ( \[\[:w:(?!([a-z\-]{2,5}:|[A-Za-z0-9 _\-\.:]+))([^\|\]]*[^\x00-\x7F][^\|\]]*)\|([^\]]+)\]\]]] → [[$2|$3]])
  2. Enable "Add replacements to edit summary"
  3. Use Regex
  4. Preview or perform an edit

Expected Behavior:
Edit summary should contain:
replaced: [[:w:日野|日野]] → [[日野|日野]] (3),[[w:大有巴士|大有]] → [[大有巴士]]

Environment:
AWB version: 6.4.0.0

See also
https://zh.wikipedia.org/w/index.php?title=%E4%B8%AD%E8%88%88%E5%B7%B4%E5%A3%AB%E6%9A%A8%E9%97%9C%E4%BF%82%E4%BC%81%E6%A5%AD&diff=prev&oldid=87779192

螢幕擷取畫面 2025-06-16 072753.png (1,920×1,032 px, 142 KB)