Skip to content
Prev Previous commit
Next Next commit
Update Tools/cases_generator/analyzer.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
Eclips4 and AlexWaygood authored Feb 23, 2024
commit e57f592c00034335d5c7d32dc3681d0cd342b326
2 changes: 1 addition & 1 deletion Tools/cases_generator/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def tier_variable(node: parser.InstDef) -> int | None:
if token.kind == "ANNOTATION":
if token.text == "specializing":
return 1
if re.match(r"tier\d", token.text):
if re.fullmatch(r"tier\d", token.text):
return int(token.text[-1])
return None

Expand Down