[Feature Request] Support comma separated range list in RangeParser
JohannesKlauss opened this issue · 0 comments
JohannesKlauss commented
Currently you can parse one range string like
assert_eq!(RangeParser::parse_one("KK+").unwrap().len(), 12)
I'd like to have the ability to parse a broader range string, something like JJ+, A2s+
:
assert_eq!(RangeParser::parse_one("KK+,A2s+").unwrap().len(), 60)
Or a bit more complicated
assert_eq!(RangeParser::parse_one("AK-87s,A2s+").unwrap().len(), 72)
Since AK-87s
overlaps AKs
with A2s+
it would need to look out for duplicates.
Do you feel this could be a useful addition?