Skip to content

Commit d5dd6b2

Browse files
authored
O2 linter: Accept (almost) any exception reason (#12342)
1 parent ce44738 commit d5dd6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/o2_linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def is_disabled(self, line: str, prefix_comment="//") -> bool:
248248
if self.name in line:
249249
self.n_disabled += 1
250250
# Look for a comment with a reason for disabling.
251-
if re.search(r" \([\w\s]{3,}\)", line):
251+
if re.search(r" \(.{3,}\)", line):
252252
return True
253253
return False
254254

0 commit comments

Comments
 (0)