mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-11-27 03:00:47 -06:00
improved fqcn module regex (closes #18)
This commit is contained in:
parent
2068d40f28
commit
e82d2b84a8
@ -322,7 +322,7 @@ for dirpath, dirnames, files in os.walk(os.path.abspath(args.directory)):
|
||||
parsefiles.append(f)
|
||||
|
||||
# prepare regex
|
||||
_fqcnregex = re.compile(r'^(?P<white>\s*-?\s+)(?P<module>%s):' % '|'.join(fqcndict.keys()))
|
||||
_fqcnregex = re.compile(r'^(?P<white>\s*-?\s+)(?P<module>%s):[\s$]' % '|'.join(fqcndict.keys()))
|
||||
_taskstartregex = re.compile(
|
||||
r'^(?P<white>\s*-\s+)(?P<nm>%s):' %
|
||||
'|'.join(['name'] + list(fqcndict.keys()))
|
||||
|
Loading…
Reference in New Issue
Block a user