mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-07 23:42:21 +02:00
fix(routing): keep media review out of editor and web paths
This commit is contained in:
@@ -3004,6 +3004,14 @@ def inline_suggestion_request(user_text):
|
||||
text = str(user_text or '').strip()
|
||||
if inline_text_transformation(text):
|
||||
return False
|
||||
if re.search(
|
||||
r"(?:file://)?/workspace/[^\s`\"']+\."
|
||||
r"(?:avif|bmp|gif|jpe?g|png|svg|tiff?|webp|mp3|m4a|ogg|wav|flac|"
|
||||
r"aac|mp4|m4v|mov|mkv|avi|webm)\b",
|
||||
text,
|
||||
re.I,
|
||||
):
|
||||
return False
|
||||
apply_request = re.search(
|
||||
r'\b(?:apply|accept)\s+(?:the\s+)?(?:change|changes|suggestion|suggestions)\b',
|
||||
text, re.I,
|
||||
|
||||
Reference in New Issue
Block a user