doronbehar/pistol

Design suggestion for speed and simplicity

doronbehar opened this issue · 1 comments

Continuing from gokcehan/lf#161

My current plan for the handle function is as follows:

After the mime type is known, while reading the configuration file, if a mime type in it matches (with regex) to our mime type, we stop reading the rest of the configuration file and we continue to processing the command. This way, if a mime type has additional matchers in the configuration file, the first will take precedence and users will need to be aware of that.

Fixed by a74bdc0 .