Open rofinn opened 3 years ago
For example, we should be able to define patterns like:
Pattern(:train, :input, (:foo, :bar))
which would match (:train, :input, :foo) or (:train, :input, :bar), but not (:train, :input, :baz)
(:train, :input, :foo)
(:train, :input, :bar)
(:train, :input, :baz)
Similarly, I could see an argument for something like:
Pattern(:train, :input, r"foo.*")
which would match (:train, :input, "foo.1") and (:train, :input, "foo.2), but not (:train, :input, "bar.1")
(:train, :input, "foo.1")
(:train, :input, "foo.2)
(:train, :input, "bar.1")
NOTE: These should both be fallbacks, so that (:train, :input, (:foo, :bar)) or (:train, :input, r"foo.*") would take priority if they matched first.
(:train, :input, (:foo, :bar))
(:train, :input, r"foo.*")
For example, we should be able to define patterns like:
which would match
(:train, :input, :foo)
or(:train, :input, :bar)
, but not(:train, :input, :baz)
Similarly, I could see an argument for something like:
which would match
(:train, :input, "foo.1")
and(:train, :input, "foo.2)
, but not(:train, :input, "bar.1")
NOTE: These should both be fallbacks, so that
(:train, :input, (:foo, :bar))
or(:train, :input, r"foo.*")
would take priority if they matched first.