Commit d24a74c7 authored by ASN.1 Documenter's avatar ASN.1 Documenter
Browse files

fix groups[0] in re

parent c528718b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ def parseModule(mname, content):
			for fm in re.finditer(r'^([,\s\w-]*?)FROM\s*([\w-]+)\s*({[^}]*}(?:\s+WITH\s+SUCCESSORS)?)?', s, re.VERBOSE | re.MULTILINE):
				imName = fm.group(2)
				for im in re.finditer(r'[^,\s]+', fm.group(1), 0):
					extTypes[im[0]] = imName+'.md'
					extTypes[im.group(0)] = imName+'.md'
				ret += ' * **{}** *{}*<br/>\n'.format(imName, re.sub(r'\s+', ' ', fm.group(3) or '', 0, 0))
				ret += parseText(s[pos:fm.start()], 3)+'\n'
				pos = fm.end()