Commit 3661f2749a07ebd3733dca944a4ee990b658d864

Authored by Jay Berkenbilt
1 parent d27edd54

Fix regex used for finding classes in the library

Showing 1 changed file with 3 additions and 1 deletions
check_abi
... ... @@ -111,7 +111,9 @@ class Main:
111 111 classes = set()
112 112 for i in sorted(lib):
113 113 # Find a symbol that looks like a class method.
114   - m = re.match(r'(((?:^\S*?::)?(?:[^:\s]+))::([^:\s]+))\(', i)
  114 + m = re.match(
  115 + r'(((?:^\S*?::)?(?:[^:\s]+))::([^:\s]+))(?:\[[^\]]+\])?\(',
  116 + i)
115 117 if m:
116 118 full = m.group(1)
117 119 clas = m.group(2)
... ...