Simplify the empty string regex
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user