]> Cypherpunks repositories - gostls13.git/commit
regexp: fix compiling alternate patterns of different fold case literals
authoritchyny <itchyny@cybozu.co.jp>
Fri, 4 Jul 2025 22:59:25 +0000 (22:59 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 30 Jul 2025 14:25:52 +0000 (07:25 -0700)
commit3aa1b0008169cea3ed79a4a19b66f64479be4402
tree17af46f392ff01472907f24af5c3273f32ffcc06
parentb1e933d95518a7978efb29772bd6129acf0af452
regexp: fix compiling alternate patterns of different fold case literals

Fixing Equal method in regexp/syntax package fixes compilation of
some alternate patterns like "0A|0[aA]".

Fixes #59007

Change-Id: Idd519c6841167f932899b0ada347fb90a38a765e
GitHub-Last-Rev: 6f43cbca6361c0d084a12abeec65d7c659a4fe61
GitHub-Pull-Request: golang/go#66165
Reviewed-on: https://go-review.googlesource.com/c/go/+/569735
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Mark Freeman <mark@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/regexp/find_test.go
src/regexp/syntax/regexp.go