From 703455f78909c8bf9ebeb9cfe68cc386eb07590f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 20 Sep 2011 09:53:40 +0000 Subject: improve doxyfilter to catch the whole XEP name --- doc/doxyfilter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/doxyfilter.cpp') diff --git a/doc/doxyfilter.cpp b/doc/doxyfilter.cpp index 75359bc2..6f3efe58 100644 --- a/doc/doxyfilter.cpp +++ b/doc/doxyfilter.cpp @@ -106,7 +106,8 @@ int main(int argc, char *argv[]) source.close(); // add links for XEPs - code.replace(QRegExp("(XEP-([0-9]{4}))"), "\\1"); + QRegExp regexp("(XEP-([0-9]{4})(: [^\\s.]+( [A-Z][^\\s.]*)*)?)"); + code.replace(regexp, "\\1"); QTextStream output(stdout); output << code; -- cgit v1.2.3