Keep supplied proofreading text out of document review controls

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 20:41:56 +00:00
parent 4faf683912
commit 08ab1c9507
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -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,