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

Issue 4922123285954560: Fixed: Pipe in filter interpreted wrong when wildcards stripped away (Closed)

Created:
Jan. 24, 2014, 11:33 a.m. by Thomas Greiner
Modified:
Jan. 29, 2014, 11:34 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

This change has been suggested on the forum: https://adblockplus.org/forum/viewtopic.php?f=11&t=11935#p91135 This issue therefore also includes the ANSI range fix. It doesn't break any of our unit tests and it achieves the expected results.

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -19 lines) Patch
M lib/filterClasses.js View 1 1 chunk +12 lines, -19 lines 1 comment Download

Messages

Total messages: 4
Thomas Greiner
Jan. 24, 2014, 11:44 a.m. (2014-01-24 11:44:13 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/4922123285954560/diff/5629499534213120/lib/filterClasses.js File lib/filterClasses.js (right): http://codereview.adblockplus.org/4922123285954560/diff/5629499534213120/lib/filterClasses.js#newcode514 lib/filterClasses.js:514: source = source.replace(/\\\|$/, "$"); // process anchor at expression ...
Jan. 24, 2014, 1:11 p.m. (2014-01-24 13:11:32 UTC) #2
Thomas Greiner
Reverted it to the mentioned state with minor adaptions. Also reverted the 0x80 change or ...
Jan. 24, 2014, 2:48 p.m. (2014-01-24 14:48:16 UTC) #3
Wladimir Palant
Jan. 27, 2014, 2:06 p.m. (2014-01-27 14:06:53 UTC) #4
LGTM whether or not you address the comment below.

http://codereview.adblockplus.org/4922123285954560/diff/5724160613416960/lib/...
File lib/filterClasses.js (right):

http://codereview.adblockplus.org/4922123285954560/diff/5724160613416960/lib/...
lib/filterClasses.js:498: .replace(/\\\^/g,
"(?:[\\x00-\\x24\\x26-\\x2C\\x2F\\x3A-\\x40\\x5B-\\x5E\\x60\\x7B-\\x80]|$)")
Nothing wrong with having \\x7F instead of \\x80 here, you were correct about
the ANSI range. Not that it really matters, character code 0x80 seems to be
unused in Unicode.

Powered by Google App Engine
This is Rietveld