mirror of
https://github.com/TheLovinator1/wutheringwaves.git
synced 2025-11-08 13:29:49 +01:00
- Add module-level compiled regexes (DISCORD_LINK_PATTERN, URL_PREFIX_PATTERN, NON_BREAKING_SPACE_PATTERN, EMPTY_CODE_BLOCK_PATTERN, SQUARE_BRACKETS_PATTERN, BALL_PATTERN, REFERENCE_MARK_PATTERN, ESCAPED_STAR_PATTERN, CIRCLED_NUMBER_PATTERNS) - Use .sub on those compiled patterns in format_discord_links and generate_atom_feed instead of repeated re.sub calls - Consolidate circled-number replacement and simplify escaped-star handling - Improves readability and avoids recompiling regexes on each use
28 KiB
28 KiB