diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-18 09:02:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-18 09:02:19 (GMT) |
commit | 992c86e438cd7c9dfc9610afc4186858c22d2e28 (patch) | |
tree | 417566dea701ca3c220dc6d3e6e50b2651fa8920 /src | |
parent | cb7d4fcf8dff6183581914465dcc9abfb3ed5a31 (diff) | |
parent | ce4b7363932c1152060ba4b24d9a7e7bf438d4e4 (diff) | |
download | Doxygen-992c86e438cd7c9dfc9610afc4186858c22d2e28.zip Doxygen-992c86e438cd7c9dfc9610afc4186858c22d2e28.tar.gz Doxygen-992c86e438cd7c9dfc9610afc4186858c22d2e28.tar.bz2 |
Merge branch 'feature/bug_nospam_email' of https://github.com/albert-github/doxygen into albert-github-feature/bug_nospam_email
Diffstat (limited to 'src')
-rw-r--r-- | src/doctokenizer.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index c45bc9e..bf9ccf6 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -345,6 +345,7 @@ CITESCHAR [a-z_A-Z0-9\x80-\xFF\-\?] CITEECHAR [a-z_A-Z0-9\x80-\xFF\-\+:\/\?] CITEID {CITESCHAR}{CITEECHAR}*("."{CITESCHAR}{CITEECHAR}*)*|"\""{CITESCHAR}{CITEECHAR}*("."{CITESCHAR}{CITEECHAR}*)*"\"" MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-]+ +MAILADR2 {BLANK}*[a-z_A-Z0-9+-]+({BLANK}*[Dd][Oo][Tt]{BLANK}*[a-z_A-Z0-9+-]+)?{BLANK}*[Aa][Tt]{BLANK}*[a-z_A-Z0-9-]+({BLANK}*[Dd][Oo][Tt]{BLANK}*[a-z_A-Z0-9\-]+)+{BLANK}*[a-z_A-Z0-9\-]+{BLANK}* OPTSTARS ("//"{BLANK}*)?"*"*{BLANK}* LISTITEM {BLANK}*[-]("#")?{WS} MLISTITEM {BLANK}*[+*]{WS} @@ -655,6 +656,10 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV} g_token->isEMailAddr=TRUE; return TK_URL; } +<St_Para>"<"{MAILADR2}">" { // anti spame mail address + g_token->name=yytext; + return TK_WORD; + } <St_Para>"$"{ID}":"[^:\n$][^\n$]*"$" { /* RCS tag */ QCString tagName(yytext+1); int index=tagName.find(':'); |