mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-08 07:52:20 +02:00
Keep supplied proofreading text out of document review controls
This commit is contained in:
@@ -2925,6 +2925,8 @@ def active_editor_whole_draft_request(active_document, user_text):
|
||||
def inline_suggestion_request(user_text):
|
||||
"""Whether the user explicitly requests inline review suggestions."""
|
||||
text = str(user_text or '').strip()
|
||||
if inline_text_transformation(text):
|
||||
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