Index: cc/PRESUBMIT.py |
diff --git a/cc/PRESUBMIT.py b/cc/PRESUBMIT.py |
index 2f2c0f5e28132f3b5131ad61ae467d899817242f..c876419762ee6f29a0460154974d855b69e0ca98 100644 |
--- a/cc/PRESUBMIT.py |
+++ b/cc/PRESUBMIT.py |
@@ -22,7 +22,7 @@ def CheckAsserts(input_api, output_api, white_list=CC_SOURCE_FILES, black_list=N |
for f in input_api.AffectedSourceFiles(source_file_filter): |
contents = input_api.ReadFile(f, 'rb') |
# WebKit ASSERT() is not allowed. |
- if re.search(r"ASSERT\(", contents): |
+ if re.search(r"\bASSERT\(", contents): |
assert_files.append(f.LocalPath()) |
# WebKit ASSERT_NOT_REACHED() is not allowed. |
if re.search(r"ASSERT_NOT_REACHED\(", contents): |