Skip to content

Commit

Permalink
Fix bug in lint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 10, 2024
1 parent dd2d83d commit 65960a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,6 @@ def is_acronym_or_pascal_case(s: str) -> bool:

if word.startswith("`"):
inline_code_block = True
if word.endswith("`"):
inline_code_block = False

if last_punctuation:
word = word.capitalize()
Expand All @@ -819,6 +817,9 @@ def is_acronym_or_pascal_case(s: str) -> bool:
else:
word = word.lower()

if word.endswith("`"):
inline_code_block = False

new_words.append((word + last_punctuation) if last_punctuation else word)
is_first_word = False

Expand Down

0 comments on commit 65960a1

Please sign in to comment.