lint: Fix issue with common_string_finder (#265)

This commit is contained in:
Narr the Reg 2025-01-13 12:42:01 -06:00 committed by GitHub
parent bc0ca21d50
commit 2d02e07fba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,10 +266,12 @@ def common_string_finder(c, path):
continue
if "extern \"C\"" in line:
continue
if "__asm__" in line:
continue
if "//" in line:
continue
matches = re.findall(r'"(.+?)"', line)
matches = re.findall(r'"(.*?)"', line)
for match in matches:
if len(match) < 2: