Fix bug caused by factoring of common prefixes in alternations.

Change-Id: Ic9c634e2ac0103e3fcdbc8af48a0415d0adfbf0f
Reviewed-on: https://code-review.googlesource.com/3975
Reviewed-by: Paul Wankadia <junyer@google.com>
3 files changed