The old code was accidentally recompiling the pattern
and losing the options, both inefficient and incorrect.
Thanks to @MajorTanya for the excellent diagnosis.
This bug was introduced in CL 60290 and then copied
over from the Abseil branch.
Fixes#558.
Change-Id: I072707003b444fb0934a310e14147b4d65b9da11
Reviewed-on: https://code-review.googlesource.com/c/re2/+/63830
Reviewed-by: Alan Donovan <adonovan@google.com>
As announced in mid April, RE2 will take a dependency on Abseil in the
`main` branch. This change is one of (quite probably) many that should
ultimately see the `abseil` branch removed.
Change-Id: I0ae5a6643f77d2ebf675443cea7cba558b8c7fef
Reviewed-on: https://code-review.googlesource.com/c/re2/+/61230
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>