I would disallow commas for versions, so they have to be specified as `x a-b y`.  Easiest solution.