Changes between Version 6 and Version 10 of Ticket #6847


Ignore:
Timestamp:
08/29/2018 04:29:12 PM (18 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6847

    • Property Status changed from reviewing to closed
    • Property Resolution changed from to fixed
    • Property Cc Ross rscott added
  • Ticket #6847 – Description

    v6 v10  
    8888 
    8989The filter `#$#hide-if-shadow-contains /\\bAd\\b/ div[id]` should hide the ad "Best ad ever!" but not the content "Support the Open Web". 
     90 
     91=== Additional notes === 
     92The `\` (backslash) is an escape character in snippet filters (see #6538), which means it needs to be escaped itself to be taken literally. This is why the regular expression `\bAd\b` must be specified as `/\\bAd\\b/` in a snippet filter. 
     93 
     94The [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp regular expression] passed to the snippet cannot include the `/i` (ignore case) flag, nor any other flags; support for flags may be added in the future.