mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
allow spaces before the filter string (#16312)
This commit is contained in:
parent
e088193599
commit
5a2b34e159
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class Templar:
|
||||||
self.variable_start = self.environment.variable_start_string
|
self.variable_start = self.environment.variable_start_string
|
||||||
self.variable_end = self.environment.variable_end_string
|
self.variable_end = self.environment.variable_end_string
|
||||||
self._clean_regex = re.compile(r'(?:%s|%s|%s|%s)' % (self.variable_start, self.block_start, self.block_end, self.variable_end))
|
self._clean_regex = re.compile(r'(?:%s|%s|%s|%s)' % (self.variable_start, self.block_start, self.block_end, self.variable_end))
|
||||||
self._no_type_regex = re.compile(r'.*\|(?:%s)\s*(?:%s)?$' % ('|'.join(C.STRING_TYPE_FILTERS), self.variable_end))
|
self._no_type_regex = re.compile(r'.*\|\s*(?:%s)\s*(?:%s)?$' % ('|'.join(C.STRING_TYPE_FILTERS), self.variable_end))
|
||||||
|
|
||||||
def _get_filters(self):
|
def _get_filters(self):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue