Skip to content

Commit

Permalink
fixed text highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
piterson05 committed Sep 10, 2023
1 parent 49f2216 commit 22d37b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def setup_html_doc():

def add_formatted_text_to_html(text: str):
text = regex_replace_multiple(text, GTA_FORMAT_REPLACEMENT_TABLE)
GROUP_REGEX = r"~h~|~n~|~bold~|~italic~|<C>|<\/C>|~HUD_COLOUR_.+?~|~HC_.+?~|~CC_[0-9]{1,3}_[0-9]{1,3}_[0-9]{1,3}~"
GROUP_REGEX = r"~h~|~n~|~bold~|~italic~|\(C\)|\(\/C\)|~HUD_COLOUR_.+?~|~HC_.+?~|~CC_[0-9]{1,3}_[0-9]{1,3}_[0-9]{1,3}~"
bolded = False
italic = False
color = "rgb(205,205,205)"
Expand All @@ -470,9 +470,9 @@ def add_formatted_text_to_html(text: str):
bolded = not bolded
case "~italic~":
italic = not italic
case "<C>":
case "(C)":
condensed += 1
case "</C>":
case "(/C)":
condensed -= 1
case "~n~":
new_line = not new_line
Expand Down

0 comments on commit 22d37b8

Please sign in to comment.