Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def request_upload_via_dm(user_id: str, announcement_text: str) -> None:
"user": user_id,
}
)

await client.chat_postMessage(
channel=user_id, text=SLACK_JUMPSTART_MESSAGE, blocks=message
)
Expand Down
12 changes: 6 additions & 6 deletions src/core/wikithoughts.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@


# Precompile all the Regex operations
RE_LINK: Pattern[str] = re.compile(
r'\[https?://[^\s"]+\s+"?([^\]"]+)"?\]'
) # Https Links
RE_FILE_IMAGE = re.compile(r"\[\[(?:File|Image):[^\[\]]*\]\]", re.IGNORECASE)
RE_LINK: Pattern[str] = re.compile(r'\[https?://[^\s"]+\s+"?([^\]"]+)"?\]')
RE_FILE: Pattern[str] = re.compile(r"\[\[File:[^\]]*\]\]", re.IGNORECASE)
RE_IMAGE: Pattern[str] = re.compile(r"\[\[Image:[^\]]*\]\]", re.IGNORECASE)
RE_PAGE_TEXT: Pattern[str] = re.compile(r"\[\[[^\|\]]*\|([^\]]+)\]\]")
RE_PAGE: Pattern[str] = re.compile(r"\[\[([^\]]+)\]\]")
RE_CSH: Pattern[str] = re.compile(r"\^\^([^^]+)\^\^")
Expand All @@ -70,10 +69,11 @@ def clean_wikitext(text: str) -> str:
"""

reg_operations: tuple[Pattern[str]] = (
RE_PAGE,
RE_FILE_IMAGE,
RE_FILE,
RE_IMAGE,
RE_LINK,
RE_PAGE_TEXT,
RE_PAGE,
RE_CSH,
RE_TEMPLATE,
RE_HTML,
Expand Down
Loading