]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Add new Helper to process Ignore Origin rules and RulerZ operator
authorKevin Decherf <kevin@kdecherf.com>
Sun, 11 Aug 2019 21:51:55 +0000 (23:51 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Sat, 25 Apr 2020 13:59:23 +0000 (15:59 +0200)
commitf39c5a2a702036750b4d7c32d02e7f92955a4eed
tree267e1488312d8c336ef937bbe6baeddc9441f694
parent24230a5130005e274e1d8d3fe8eaca13cb978b9c
Add new Helper to process Ignore Origin rules and RulerZ operator

This commits adds a new helper like RuleBasedTagger for processing
ignore origin rules. It also adds a new custom RulerZ operator for the
'~' pattern matching rule.

Renames 'pattern' with '_all' in IgnoreOriginRule entity.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/CoreBundle/Entity/IgnoreOriginInstanceRule.php
src/Wallabag/CoreBundle/Entity/IgnoreOriginUserRule.php
src/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessor.php [new file with mode: 0644]
src/Wallabag/CoreBundle/Operator/PHP/PatternMatches.php [new file with mode: 0644]
src/Wallabag/CoreBundle/Resources/config/services.yml
tests/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessorTest.php [new file with mode: 0644]