slacker icon indicating copy to clipboard operation
slacker copied to clipboard

Strategy to match on first or on all matches

Open wende opened this issue 8 years ago • 1 comments

Thanks to @strategy the matchers will check all, or try the first one and stop finding next matches. That way You can put more specific matches before these less specific

# Possible values :one, :many. Defaults to nil
@strategy :one | :many | nil 

wende avatar May 12 '16 17:05 wende

Hey @wende, thanks for the PR! :)

Could you include some tests for the new functionality?

Also, some notes in the README would make this a complete PR.

koudelka avatar May 13 '16 19:05 koudelka