I didn't notice this was happening in `modify_wp_config()`. You should of course do the `preg_match()` before calling it.