improved fqcn module regex (closes #18)

This commit is contained in:
Klaus Zerwes 2023-03-06 09:31:00 +01:00
parent 2068d40f28
commit e82d2b84a8

View File

@ -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()))