go/src/regexp
Keegan Carruthers-Smith 648c7b592a regexp/syntax: exclude full range from String negation case
If the char class is 0x0-0x10ffff we mistakenly would String that to `[^]`,
which is not a valid regex.

Fixes #31807

Change-Id: I9ceeaddc28b67b8e1de12b6703bcb124cc784556
Reviewed-on: https://go-review.googlesource.com/c/go/+/175679
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-05-22 04:43:25 +00:00
..
syntax regexp/syntax: exclude full range from String negation case 2019-05-22 04:43:25 +00:00
testdata
all_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
backtrack.go
example_test.go regexp: add ReplaceAllStringFunc example 2019-02-27 21:48:41 +00:00
exec.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
exec2_test.go
exec_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
find_test.go regexp: limit the capacity of slices of bytes returned by FindX 2019-02-26 23:51:17 +00:00
onepass.go
onepass_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
regexp.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00