diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-09-20 09:53:40 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-09-20 09:53:40 +0000 |
| commit | 703455f78909c8bf9ebeb9cfe68cc386eb07590f (patch) | |
| tree | e661ad3fb60e4bb7e4d761a54c21f0e2ff05d4ec /doc/doxyfilter.cpp | |
| parent | 1f0b849a8a1d9fd9e5573181215b18ace06435ee (diff) | |
| download | qxmpp-703455f78909c8bf9ebeb9cfe68cc386eb07590f.tar.gz | |
improve doxyfilter to catch the whole XEP name
Diffstat (limited to 'doc/doxyfilter.cpp')
| -rw-r--r-- | doc/doxyfilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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}))"), "<a href=\"http://xmpp.org/extensions/xep-\\2.html\">\\1</a>"); + QRegExp regexp("(XEP-([0-9]{4})(: [^\\s.]+( [A-Z][^\\s.]*)*)?)"); + code.replace(regexp, "<a href=\"http://xmpp.org/extensions/xep-\\2.html\">\\1</a>"); QTextStream output(stdout); output << code; |
