Upstream support for angel-foo input as alias for foo.

This replaces the revspace_angel plugin at RevSpace.
This commit is contained in:
Juerd Waalboer 2023-09-18 01:35:11 +02:00
parent 0245f80961
commit 0dcacfc659
2 changed files with 6 additions and 1 deletions

4
plugins/regex_angel Normal file
View file

@ -0,0 +1,4 @@
sub command($self, $cart, $command, @) {
return REDO, $1 if $command =~ /^angel-(.*)/;
return NEXT;
}

View file

@ -45,5 +45,6 @@ statiegeld_tokens
products # matches product IDs (barcodes)
market # also matches product IDs
users # matches usernames
url
#regex_angel # matches SHA2017/MCH2022 angel badges
url # matches URLs
#deprecated_raw # matches amounts