Changes between Version 8 and Version 9 of Ticket #3673


Ignore:
Timestamp:
05/08/2017 11:26:30 PM (3 years ago)
Author:
mjethani
Comment:

Updated title and description to reflect expanded scope.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3673

    • Property Summary changed from [abp2blocklist] Merge rules that only differ in a single character to [abp2blocklist] Merge closely matching rules
  • Ticket #3673 – Description

    v8 v9  
    2121}}} 
    2222 
     23Two filters that differ in only in one contiguous range of characters could also be merged into one. For example, `ad` and `adserver` could be merged into `^https?://.*ad(server)?`. 
     24 
    2325=== What to change === 
    24 Combine rules that only differ in one character into a single rule using character sets and quantifiers. 
     26Combine rules that are only one edit operation apart into a single rule using character sets, groups, and quantifiers. 
    2527 
    2628||= example filters                =||= resulting regular expression           =|| 
     
    2830|| `foo1`, `foo`                    || `^https?://.*foo1?`                      || 
    2931|| `foo1`, `foo2`, `foo`            || `^https?://.*foo[12]?`                   || 
     32|| `foo12`, `foo`            || `^https?://.*foo(12)?`                   || 
    3033|| `foo1.com##.ad`, `foo2.com##.ad` || `^https?://([^/:]*\\.)?foo[12]\.com[/:]` ||