go/src/regexp
Paul Wankadia 5ccaf0255b regexp/syntax: fix factoring of common prefixes in alternations
In the past, `a.*?c|a.*?b` was factored to `a.*?[bc]`. Thus, given
"abc" as its input string, the automaton would consume "ab" and
then stop (when unanchored) whereas it should consume all of "abc"
as per leftmost semantics.

Fixes #13812.

Change-Id: I67ac0a353d7793b3d0c9c4aaf22d157621dfe784
Reviewed-on: https://go-review.googlesource.com/18357
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-08 16:41:46 +00:00
..
syntax regexp/syntax: fix factoring of common prefixes in alternations 2016-01-08 16:41:46 +00:00
testdata regexp/syntax: fix factoring of common prefixes in alternations 2016-01-08 16:41:46 +00:00
all_test.go regexp: fix LiteralPrefix for certain onepass progs 2015-11-25 17:28:33 +00:00
backtrack.go
example_test.go
exec.go
exec2_test.go
exec_test.go
find_test.go
onepass.go regexp: fix one-pass compilation 2015-11-25 17:44:17 +00:00
onepass_test.go regexp: fix one-pass compilation 2015-11-25 17:44:17 +00:00
regexp.go regexp: add Copy method to Regexp 2015-11-25 17:26:37 +00:00