Closed devongovett closed 7 years ago
Fixes #10. Flattens alternations so that a single node may have more than 2 options, and sorts the options by length. This is necessary since regex alternations short circuit: they return the first matching option, not necessarily the longest.
@mathiasbynens
Fixes #10. Flattens alternations so that a single node may have more than 2 options, and sorts the options by length. This is necessary since regex alternations short circuit: they return the first matching option, not necessarily the longest.