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,7 +111,9 @@ class Main:
111 classes = set() 111 classes = set()
112 for i in sorted(lib): 112 for i in sorted(lib):
113 # Find a symbol that looks like a class method. 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 if m: 117 if m:
116 full = m.group(1) 118 full = m.group(1)
117 clas = m.group(2) 119 clas = m.group(2)