From 0a330536b6093f99b2e28557dd82d3d40a5beed3 Mon Sep 17 00:00:00 2001 From: Max Chernoff <49086429+gucci-on-fleek@users.noreply.github.com> Date: Wed, 18 May 2022 19:32:22 -0600 Subject: [PATCH] Also parse "Module" and "LaTeX3" warnings --- res/resfiles/scripts/Hooks/logParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/resfiles/scripts/Hooks/logParser.js b/res/resfiles/scripts/Hooks/logParser.js index 8a7d5965a..ce8084561 100644 --- a/res/resfiles/scripts/Hooks/logParser.js +++ b/res/resfiles/scripts/Hooks/logParser.js @@ -110,7 +110,7 @@ function LogParser() { // Additionally, it recognizes other warnings like "LaTeX Font Warning: ...\n(Font) ...". // The macro \GenericWarning does not produce formatted output, so it is impossible // to match it. We need to look for output generated by higher level commands. - Regex: new RegExp("^(?:Class|Package|LaTeX) ([^\\s]+) Warning: (?:(?:\\(\\1\\)\\s.+)+|.+\n)*.*\\.\n"), + Regex: new RegExp("^(?:Class|Package|LaTeX3?|Module) ([^\\s]+) Warning: (?:(?:\\(\\1\\)\\s.+)+|.+\n)*.*\n"), Callback: function (m, f) { // We remove "\n() " from description: var desc = m[0].replace(new RegExp("^(.{0," + (max_print_line - 1) + "})$", "gm"), "$1 ")