Skip to content

Commit

Permalink
properly color count subrules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouramie committed Dec 15, 2024
1 parent 2227fc7 commit 770dae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/stardew_valley/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def setup_logic(self):


def parse_explanation(explanation: RuleExplanation) -> list[JSONMessagePart]:
result_regex = r"(\(|\)| & | -> | \| | \[|\](?: ->)?\s*| \(\w+\)|\n\s*)"
result_regex = r"(\(|\)| & | -> | \| |\d+x | \[|\](?: ->)?\s*| \(\w+\)|\n\s*)"
splits = re.split(result_regex, str(explanation).strip())

messages = []
Expand Down

0 comments on commit 770dae0

Please sign in to comment.