Skip to content

Commit

Permalink
Allow Jinja2 whitespace control chars in vars
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Meyer <meyer@b1-systems.de>
  • Loading branch information
netzvieh committed Mar 26, 2019
1 parent f151688 commit 31e4d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansiblelint/rules/VariableHasSpacesRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class VariableHasSpacesRule(AnsibleLintRule):
tags = ['formatting']
version_added = 'v4.0.0'

bracket_regex = re.compile("{{[^{' ]|[^ '}]}}")
bracket_regex = re.compile("{{[^{' \-]|[^ '}\-]}}")

def match(self, file, line):
return self.bracket_regex.search(line)

0 comments on commit 31e4d4a

Please sign in to comment.