Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 1530763005: Correctly extracting email addresses (Closed)

Created:
5 years ago by Wei Li
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang, jun_fang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Correctly extracting email addresses An email address contains user name part and host name part. User name allows dash or underscore, but not leading/ending/double period. Host name doesn't allow leading/ending/double period either. BUG=489107 R=jun_fang@foxitsoftware.com, thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/cc70b7b55c9edcd0ff038f59080699060fbbede1

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Make case sensitive #

Total comments: 12

Patch Set 3 : address comments #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -50 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M core/include/fxcrt/fx_ext.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 1 2 3 4 2 chunks +39 lines, -49 lines 0 comments Download
A core/src/fpdftext/fpdf_text_int_unittest.cpp View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
M core/src/fpdftext/text_int.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pdfium.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
Wei Li
PTAL, thanks
5 years ago (2015-12-17 07:01:08 UTC) #6
Wei Li
Forgot to mention, the original code chose to do more strict checking. For example, not ...
5 years ago (2015-12-17 07:11:38 UTC) #7
jun_fang
https://codereview.chromium.org/1530763005/diff/60001/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1530763005/diff/60001/core/src/fpdftext/fpdf_text_int.cpp#newcode2617 core/src/fpdftext/fpdf_text_int.cpp:2617: int i; nit: prefer "for (int i = aPos ...
5 years ago (2015-12-17 13:30:45 UTC) #8
Wei Li
https://codereview.chromium.org/1530763005/diff/60001/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1530763005/diff/60001/core/src/fpdftext/fpdf_text_int.cpp#newcode2617 core/src/fpdftext/fpdf_text_int.cpp:2617: int i; On 2015/12/17 13:30:45, jun_fang wrote: > nit: ...
5 years ago (2015-12-17 17:41:41 UTC) #9
Lei Zhang
https://codereview.chromium.org/1530763005/diff/80001/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1530763005/diff/80001/core/src/fpdftext/fpdf_text_int.cpp#newcode2616 core/src/fpdftext/fpdf_text_int.cpp:2616: Maybe add a comment to say checking the local ...
5 years ago (2015-12-17 19:13:30 UTC) #10
Wei Li
PTAL, thanks https://codereview.chromium.org/1530763005/diff/80001/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1530763005/diff/80001/core/src/fpdftext/fpdf_text_int.cpp#newcode2616 core/src/fpdftext/fpdf_text_int.cpp:2616: On 2015/12/17 19:13:29, Lei Zhang wrote: > ...
5 years ago (2015-12-17 19:42:27 UTC) #11
Wei Li
defined two Macros, PTAL.
5 years ago (2015-12-17 23:11:44 UTC) #13
jun_fang
On 2015/12/17 23:11:44, Wei wrote: > defined two Macros, PTAL. LGTM. Thanks!
5 years ago (2015-12-18 00:08:55 UTC) #14
Lei Zhang
https://codereview.chromium.org/1530763005/diff/140001/core/include/fxcrt/fx_basic.h File core/include/fxcrt/fx_basic.h (right): https://codereview.chromium.org/1530763005/diff/140001/core/include/fxcrt/fx_basic.h#newcode33 core/include/fxcrt/fx_basic.h:33: #define FX_ISWALPHA(x) \ We already have FXSYS_islower() and friends ...
5 years ago (2015-12-18 00:20:56 UTC) #15
Lei Zhang
https://codereview.chromium.org/1530763005/diff/140001/core/src/fpdftext/fpdf_text_int.cpp File core/src/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1530763005/diff/140001/core/src/fpdftext/fpdf_text_int.cpp#newcode2645 core/src/fpdftext/fpdf_text_int.cpp:2645: CFX_WideString strtemp = str; Not used? https://codereview.chromium.org/1530763005/diff/140001/core/src/fpdftext/fpdf_text_int_unittest.cpp File core/src/fpdftext/fpdf_text_int_unittest.cpp ...
5 years ago (2015-12-18 00:24:09 UTC) #16
Wei Li
https://codereview.chromium.org/1530763005/diff/140001/core/include/fxcrt/fx_basic.h File core/include/fxcrt/fx_basic.h (right): https://codereview.chromium.org/1530763005/diff/140001/core/include/fxcrt/fx_basic.h#newcode33 core/include/fxcrt/fx_basic.h:33: #define FX_ISWALPHA(x) \ On 2015/12/18 00:20:56, Lei Zhang wrote: ...
5 years ago (2015-12-18 01:12:21 UTC) #17
Lei Zhang
lgtm
5 years ago (2015-12-18 01:15:43 UTC) #18
Wei Li
5 years ago (2015-12-18 01:47:05 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:160001) manually as
cc70b7b55c9edcd0ff038f59080699060fbbede1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698