Page MenuHomePhabricator

ReplaceText should allow empty replacement strings on the command line
Closed, ResolvedPublicFeature

Description

If you leave the replacement string empty with command line use, you just get the message "You have to specify replacement text". Would be nice to have parity with the web UI.

Event Timeline

Aklapper changed the subtype of this task from "Task" to "Feature Request".Oct 13 2021, 2:36 PM

@Buovjaga: Thanks for reporting this. For future reference, please use the feature request form (linked from the top of the task creation page) to create feature requests. Thanks.

Change 830851 had a related patch set uploaded (by Fomafix; author: Fomafix):

[mediawiki/extensions/ReplaceText@master] replaceAll.php: Allow empty values as target

https://gerrit.wikimedia.org/r/830851

Change 830851 merged by jenkins-bot:

[mediawiki/extensions/ReplaceText@master] replaceAll.php: Allow empty values as target

https://gerrit.wikimedia.org/r/830851