From 25741a800f0ed9e1e58fa5bd39ba4629e9eba69d Mon Sep 17 00:00:00 2001 From: totoro Date: Mon, 20 Apr 2020 19:49:28 +0900 Subject: [PATCH] add support of + 'add sign' into email address --- mail/lexers/fqa.anubis | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/mail/lexers/fqa.anubis b/mail/lexers/fqa.anubis index fb022ee..ac8751a 100644 --- a/mail/lexers/fqa.anubis +++ b/mail/lexers/fqa.anubis @@ -189,6 +189,7 @@ public define (LM_LexerState_FQA,LM_TokenOrError_FQA) then email_tester_state_3(clear_abol(ls)) else if lm_next_char(ls) is (_ls,c) then if c = -1 then email_tester_state_1(_ls) else + if c = 43 then email_tester_state_4(_ls) else if c = 45 then email_tester_state_4(_ls) else if (48 +=< c & c +=< 57) then email_tester_state_4(_ls) else if (65 +=< c & c +=< 90) then email_tester_state_4(_ls) else @@ -232,6 +233,7 @@ define (LM_LexerState_FQA,LM_TokenOrError_FQA) LM_LexerState_FQA ls, ) = if lm_next_char(ls) is (_ls,c) then + if c = 43 then email_tester_state_4(_ls) else if c = 45 then email_tester_state_4(_ls) else if c = 46 then email_tester_state_5(_ls) else if (48 +=< c & c +=< 57) then email_tester_state_4(_ls) else @@ -248,6 +250,7 @@ define (LM_LexerState_FQA,LM_TokenOrError_FQA) LM_LexerState_FQA ls, ) = if lm_next_char(ls) is (_ls,c) then + if c = 43 then email_tester_state_6(_ls) else if c = 45 then email_tester_state_6(_ls) else if (48 +=< c & c +=< 57) then email_tester_state_6(_ls) else if (65 +=< c & c +=< 90) then email_tester_state_6(_ls) else @@ -262,6 +265,7 @@ define (LM_LexerState_FQA,LM_TokenOrError_FQA) LM_LexerState_FQA ls, ) = if lm_next_char(ls) is (_ls,c) then + if c = 43 then email_tester_state_6(_ls) else if c = 45 then email_tester_state_6(_ls) else if c = 46 then email_tester_state_5(_ls) else if (48 +=< c & c +=< 57) then email_tester_state_6(_ls) else -- libgit2 0.21.4