Fix no-assert code-smell regex.

This commit is contained in:
Matt Clay
2019-03-08 11:43:02 -08:00
parent be39e757e3
commit 7c0bc9e4ac

View File

@@ -5,7 +5,7 @@ import os
import re
import sys
ASSERT_RE = re.compile(r'.*(?<![-:a-zA-Z#][ -])\bassert\b(?!:).*')
ASSERT_RE = re.compile(r'^\s*assert[^a-z0-9_:]')
def main():