gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
199 stars 25 forks source link

feat: continuous route rules #171

Open its-dibo opened 3 years ago

its-dibo commented 3 years ago

it seems that the checking of the route rules stops at the first matching.

example:

// rule #1
filename:  *
capture: filename
into:  example.txt

// rule #2 <-- this rule will not be checked if rule #1 matched 
filename:  example.txt
capture: filename
into:  example-2.txt

the final result must be example-2.txt, not example.txt

gyng commented 3 years ago

Are you expecting the file to be saved twice in this case? If you prefer rule 2, does moving rule 2 above rule 1 work?

its-dibo commented 3 years ago

no, I mean it should match all rules until the end. for example, it has to match rule #2 against the output of rule#1 please read the last line in the issue.