From 14eba662c8b0d50e86c54ad6f4c18b48c01bf0b7 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 21 Dec 2018 20:08:31 +0530 Subject: [PATCH] Correct match test documentation (#50229) Match test matches zero or more characters at the begining of the string. Fixes: #32366 Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/32366-test-match_fix_docs.yaml | 2 ++ docs/docsite/rst/user_guide/playbooks_tests.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/32366-test-match_fix_docs.yaml diff --git a/changelogs/fragments/32366-test-match_fix_docs.yaml b/changelogs/fragments/32366-test-match_fix_docs.yaml new file mode 100644 index 00000000000..168d660743a --- /dev/null +++ b/changelogs/fragments/32366-test-match_fix_docs.yaml @@ -0,0 +1,2 @@ +minor_changes: + - Fix documentation of match test. Match requires zero or more characters at beginning of the string. diff --git a/docs/docsite/rst/user_guide/playbooks_tests.rst b/docs/docsite/rst/user_guide/playbooks_tests.rst index 68164e191ba..b52dd09a557 100644 --- a/docs/docsite/rst/user_guide/playbooks_tests.rst +++ b/docs/docsite/rst/user_guide/playbooks_tests.rst @@ -59,7 +59,7 @@ To match strings against a substring or a regular expression, use the "match", " msg: "matched pattern 4" when: url is regex("example.com/\w+/foo") -'match' requires a complete match in the string, while 'search' only requires matching a subset of the string. +'match' requires zero or more characters at the beginning of the string, while 'search' only requires matching a subset of the string. .. _testing_versions: