From fec6b8e4f1b95761c9ffc441b994b917bddbf31f Mon Sep 17 00:00:00 2001 From: Tim Down Date: Wed, 1 Mar 2023 09:36:30 +0000 Subject: [PATCH] Merge pull request #11961 from overleaf/mj-helpful-graphics-error-alternatives [web] Handle more types of undefined control sequence error messages GitOrigin-RevId: c6fc0c4d87febcda2521e182df56dcebaed58293 --- .../js/ide/human-readable-logs/HumanReadableLogsRules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js b/services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js index 85a39ca970..7d1359e844 100644 --- a/services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js +++ b/services/web/frontend/js/ide/human-readable-logs/HumanReadableLogsRules.js @@ -45,7 +45,8 @@ const rules = [ { ruleId: 'hint_undefined_control_sequence', regexToMatch: /Undefined control sequence/, - contentRegex: /^l\.[0-9]+\s*(\\\S+)/, + contentRegex: + /^(?:l\.[0-9]+|<(?:recently read|inserted text|to be read again)>)\s*(\\\S+)/, improvedTitle: (currentTitle, details) => { if (details?.length && packageSuggestions.has(details[0])) { const command = details[0]