Simplify the empty string regex

pull/246/head
Leo Feyer 5 years ago
parent 1c191a88f3
commit 9137b064cf

@ -420,7 +420,7 @@ class QuotedTestCase(RuleTestCase):
def test_needed_extra_regex_4(self): def test_needed_extra_regex_4(self):
conf = 'quoted-strings: {quote-type: single, ' + \ conf = 'quoted-strings: {quote-type: single, ' + \
'required: only-when-needed, ' + \ 'required: only-when-needed, ' + \
'needed-extra-regex: ".+ .+"}\n' 'needed-extra-regex: " "}\n'
self.check('---\n' self.check('---\n'
'string1: \'foo\'\n' # fails 'string1: \'foo\'\n' # fails

Loading…
Cancel
Save