Merge pull request #11961 from overleaf/mj-helpful-graphics-error-alternatives

[web] Handle more types of undefined control sequence error messages

GitOrigin-RevId: c6fc0c4d87febcda2521e182df56dcebaed58293
This commit is contained in:
Tim Down 2023-03-01 09:36:30 +00:00 committed by Copybot
parent 2c9ae7cc81
commit fec6b8e4f1

View file

@ -45,7 +45,8 @@ const rules = [
{ {
ruleId: 'hint_undefined_control_sequence', ruleId: 'hint_undefined_control_sequence',
regexToMatch: /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) => { improvedTitle: (currentTitle, details) => {
if (details?.length && packageSuggestions.has(details[0])) { if (details?.length && packageSuggestions.has(details[0])) {
const command = details[0] const command = details[0]