gyng/save-in

feat: continuous route rules

its-dibo opened this issue · 2 comments

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

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?

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.