From 9137b064cf10f782ee94c7ff218ec3f8023e4a4b Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Thu, 2 Apr 2020 22:25:15 +0200 Subject: [PATCH] Simplify the empty string regex --- tests/rules/test_quoted_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rules/test_quoted_strings.py b/tests/rules/test_quoted_strings.py index 487c20a..4f84325 100644 --- a/tests/rules/test_quoted_strings.py +++ b/tests/rules/test_quoted_strings.py @@ -420,7 +420,7 @@ class QuotedTestCase(RuleTestCase): def test_needed_extra_regex_4(self): conf = 'quoted-strings: {quote-type: single, ' + \ 'required: only-when-needed, ' + \ - 'needed-extra-regex: ".+ .+"}\n' + 'needed-extra-regex: " "}\n' self.check('---\n' 'string1: \'foo\'\n' # fails