mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 19:38:19 +02:00
Fix Slack Link Parsing (#589)
This commit is contained in:
parent
5bf998219e
commit
022f59e5b2
@ -200,6 +200,9 @@ class SlackTextCleaner:
|
||||
# Find user IDs in the message
|
||||
possible_link_matches = re.findall(r"<(.*?)>", message)
|
||||
for possible_link in possible_link_matches:
|
||||
if not possible_link:
|
||||
continue
|
||||
# Special slack patterns that aren't for links
|
||||
if possible_link[0] not in ["#", "@", "!"]:
|
||||
link_display = (
|
||||
possible_link
|
||||
|
Loading…
x
Reference in New Issue
Block a user