wp-pwa / saturn-theme

This project was renamed and moved to https://github.com/frontity.
https://frontity.org
Apache License 2.0
5 stars 2 forks source link

[5] Support for excluding ads from a specific category #213

Open SantosGuillamot opened 5 years ago

SantosGuillamot commented 5 years ago

cs: @SantosGuillamot

supporter: @orballo

https://frontity.pipedrive.com/deal/54 Site pageviews: (0.15) Extra group sites: (0) Extra group pageviews: (0) Development size: (8) Blocking: expected (x3) Environment: production (x10) Reusability potential: marginal (x2) PRIORITY: [5]

DAreRodz commented 5 years ago

We could change this line in SlotInjector to use a custom isMatch function and (maybe) allow regular expressions as values.

luisherranz commented 5 years ago

We can convert strings, for example '3' to this regexp: /^3$/ and check using only regexps.

We can distinguish between regexps and strings if the string starts and ends with /, like: /aaa/.

Or we can convert the current string values to regexps in the database.