Parses a dice argument of the form (from1;from2->to1;to2). Returns { from, to } on success, or undefined if the argument is malformed. Each side is a semicolon-separated list of slicing criteria; a single criterion needs no semicolon.
(from1;from2->to1;to2)
{ from, to }
undefined
Parses a dice argument of the form
(from1;from2->to1;to2). Returns{ from, to }on success, orundefinedif the argument is malformed. Each side is a semicolon-separated list of slicing criteria; a single criterion needs no semicolon.