1
0
mirror of https://github.com/golang/go synced 2024-11-19 04:14:45 -07:00
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
exec2_test.go
exec_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
exec.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
find_test.go
onepass_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
onepass.go
regexp.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00