Skip to content

Commit fe41108

Browse files
committed
Tweak viewcfg regex to handle block IDs.
Some of our unit tests now have non-numeric block IDs, like "bb1a". While that may not be ideal, it seems harmless to tweak this regex to handle those cases.
1 parent 81c0d09 commit fe41108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/viewcfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Block(object):
6767
if self.succs is None:
6868
self.succs = []
6969
if self.last_line is not None:
70-
for match in re.finditer(r'\bbb[0-9]+\b', self.last_line):
70+
for match in re.finditer(r'\bbb[0-9]+\w*\b', self.last_line):
7171
self.succs.append(match.group())
7272

7373
it = re.finditer(r'\blabel %"?([^\s"]+)\b', self.last_line)

0 commit comments

Comments
 (0)