Fix regex for ignoring multi-line comments.

This commit is contained in:
Sage Vaillancourt 2023-09-03 20:33:25 -04:00
parent dccfa85d1f
commit 18089ae44f

View file

@ -30,7 +30,7 @@ def safeTranslate(qApp, group, text):
return text
def wordCount(text):
return len(re.findall(r"\S+", re.sub(r"(<!--).+?(-->)", "", text)))
return len(re.findall(r"\S+", re.sub(r"(<!--)[\s\S]+?(-->)", "", text)))
def charCount(text, use_spaces = True):