From ac2301fb650c9cc80fbe4de39f04b46da6cad629 Mon Sep 17 00:00:00 2001 From: JingMatrix Date: Fri, 8 Apr 2022 16:58:09 +0200 Subject: [PATCH] Fix Warning regex The current regex doesn't match the example given in the code comments above the lines changed here. It removes important information and thus leads confusion. --- src/latexoutputfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/latexoutputfilter.cpp b/src/latexoutputfilter.cpp index 9e925d7..82564da 100644 --- a/src/latexoutputfilter.cpp +++ b/src/latexoutputfilter.cpp @@ -473,7 +473,7 @@ bool LatexOutputFilter::detectWarning(const string & strLine, short &dwCookie) bool found = false, flush = false; string warning; - static Regex reLaTeXWarning("^(! )?(LaTeX|pdfTeX|Package|Class) ((.*) )?Warning.*:(.*)$", true); + static Regex reLaTeXWarning("^(! )?(LaTeX|pdfTeX|Package|Class) ((.*) )?Warning[^:]*: (.*)$", true); static Regex reNoFile("No file (.*)"); // FIXME can be removed when http://sourceforge.net/tracker/index.php?func=detail&aid=1772022&group_id=120000&atid=685683 has promoted to the users static Regex reNoAsyFile("File .* does not exist.");