File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -721,10 +721,7 @@ public function prefix() {
721
721
* : Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity). Note that 'u' (UTF-8 mode) will not be automatically added.
722
722
*
723
723
* [--regex-delimiter=<regex-delimiter>]
724
- * : The delimiter to use for the regex. It must be escaped if it appears in the search string.
725
- * ---
726
- * default: /
727
- * ---
724
+ * : The delimiter to use for the regex. It must be escaped if it appears in the search string. The default value is the result of `chr(1)`.
728
725
*
729
726
* [--table_column_once]
730
727
* : Output the 'table:column' line once before all matching row lines in the table column rather than before each matching row.
@@ -820,9 +817,9 @@ public function search( $args, $assoc_args ) {
820
817
821
818
if ( ( $ regex = \WP_CLI \Utils \get_flag_value ( $ assoc_args , 'regex ' , false ) ) ) {
822
819
$ regex_flags = \WP_CLI \Utils \get_flag_value ( $ assoc_args , 'regex-flags ' , false );
823
- $ regex_delimiter = \WP_CLI \Utils \get_flag_value ( $ assoc_args , 'regex-delimiter ' , ' / ' );
820
+ $ regex_delimiter = \WP_CLI \Utils \get_flag_value ( $ assoc_args , 'regex-delimiter ' , chr ( 1 ) );
824
821
if ( '' === $ regex_delimiter ) {
825
- $ regex_delimiter = ' / ' ;
822
+ $ regex_delimiter = chr ( 1 ) ;
826
823
}
827
824
}
828
825
You can’t perform that action at this time.
0 commit comments