Closed simsong closed 3 years ago
This code is failing:
sbufp = new sbuf_t("plain_text_pdf@textedit.com"); outdir = test_scanner(scan_email, sbufp); email_txt = getLines( outdir / "email.txt" ); REQUIRE( requireFeature(email_txt,"0\tplain_text_pdf@textedit.com"));
But this code passes:
sbufp = new sbuf_t(" plain_text_pdf@textedit.com "); outdir = test_scanner(scan_email, sbufp); email_txt = getLines( outdir / "email.txt" ); REQUIRE( requireFeature(email_txt,"1\tplain_text_pdf@textedit.com"));
It appears that the flex-based scanners are not finding email addresses that fill an entire sbuf.
I think that we can fix this with a change in sbuf_flex_scanner.h
fixed.
This code is failing:
But this code passes:
It appears that the flex-based scanners are not finding email addresses that fill an entire sbuf.
I think that we can fix this with a change in sbuf_flex_scanner.h