wp-cli / search-replace-command

Searches/replaces strings in the database.
MIT License
57 stars 45 forks source link

Adds wildcards support to `--skip-tables` parameter #124

Closed ajoah closed 5 years ago

ajoah commented 5 years ago

This little PR permits to use wildcards in skip-tables option like this : --skip-tables=wp_post*.

Useful for example when we want to skip a plugin's tables which begin by a prefix

schlessera commented 5 years ago

Thanks for the PR, @ajoah !

Code looks generally good, I just want to have positive matches added to tests as well, otherwise an empty output would still let the tests pass.

ajoah commented 5 years ago

You are right, i'm going to modify my PR.

schlessera commented 5 years ago

Thanks for the PR, @ajoah !