Allow expansion or set as full keywords

This commit is contained in:
Correl Roush 2021-07-15 21:59:39 -04:00
parent be7c3eb749
commit 77c84fc083

View file

@ -118,7 +118,7 @@ expansion_string = (
parsy.regex(r"[a-zA-Z0-9]+").map(lambda s: s.upper()).desc("expansion set code")
)
is_expansion = lstring_from("e", "s") >> matches >> expansion_string.map(IsExpansion)
is_expansion = lstring_from("e", "expansion", "s", "set") >> matches >> expansion_string.map(IsExpansion)
in_expansion = lstring("in") >> matches >> expansion_string.map(InExpansion)