We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05f4ba0 + 7664195 commit bbea3b8Copy full SHA for bbea3b8
features/db-search.feature
@@ -701,6 +701,13 @@ Feature: Search through the database
701
When I run `wp db search 'unfindable' --regex`
702
Then STDOUT should be empty
703
704
+ When I try `wp db search 'unfindable' --regex --regex-flags='abcd'`
705
+ Then STDERR should be:
706
+ """
707
+ Error: The regex '/unfindable/abcd' fails.
708
709
+ Then the return code should be 1
710
+
711
When I run `wp db search '[0-9é]+?https:' --regex --regex-flags=u --before_context=0 --after_context=0`
712
Then STDOUT should contain:
713
"""
0 commit comments