Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29912636: Issue 7052 - Use string-based matching for literal patterns (Closed)

Created:
Oct. 17, 2018, 1:34 a.m. by Manish Jethani
Modified:
Oct. 22, 2018, 1:46 p.m.
Reviewers:
hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Restrict to patterns with double anchor #

Patch Set 3 : Abstract literal pattern test into separate function #

Patch Set 4 : Add comments #

Total comments: 3

Patch Set 5 : Move matching logic into lib/common.js #

Total comments: 1

Patch Set 6 : Remove unnecessary comment #

Patch Set 7 : Restore local regexp variable #

Patch Set 8 : Move code back to lib/filterClasses.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -30 lines) Patch
M lib/filterClasses.js View 1 2 3 4 5 6 7 4 chunks +65 lines, -5 lines 0 comments Download
M test/filterClasses.js View 1 4 chunks +25 lines, -25 lines 0 comments Download

Messages

Total messages: 6
Manish Jethani
Oct. 17, 2018, 1:34 a.m. (2018-10-17 01:34:11 UTC) #1
Manish Jethani
Patch Set 1 https://codereview.adblockplus.org/29912636/diff/29913555/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29912636/diff/29913555/lib/filterClasses.js#newcode716 lib/filterClasses.js:716: if (!this.matchCase && isLiteralPattern(regexpSource)) Lowercase the ...
Oct. 17, 2018, 9:05 a.m. (2018-10-17 09:05:04 UTC) #2
hub
LGTM
Oct. 19, 2018, 4:37 p.m. (2018-10-19 16:37:04 UTC) #3
Manish Jethani
Patch Sets 5-7 I figured it was better to keep the logic for matching "||" ...
Oct. 19, 2018, 9:59 p.m. (2018-10-19 21:59:14 UTC) #4
Manish Jethani
Patch Set 8 PLEASE IGNORE 5-7. I realize that lib/common.js exists only so the code ...
Oct. 21, 2018, 11:53 a.m. (2018-10-21 11:53:44 UTC) #5
hub
Oct. 22, 2018, 1:40 p.m. (2018-10-22 13:40:50 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld