go/doc/next/6-stdlib/99-minor
Russ Cox 930cf59ba8 regexp/syntax: recognize category aliases like \p{Letter}
The Unicode specification defines aliases for some of the general
category names. For example the category "L" has alias "Letter".

The regexp package supports \p{L} but not \p{Letter}, because there
was nothing in the Unicode tables that lets regexp know about Letter.
Now that package unicode provides CategoryAliases (see #70780),
we can use it to provide \p{Letter} as well.

This is the only feature missing from making package regexp suitable
for use in a JSON-API Schema implementation. (The official test suite
includes usage of aliases like \p{Letter} instead of \p{L}.)

For better conformity with Unicode TR18, also accept case-insensitive
matches for names and ignore underscores, hyphens, and spaces;
and add Any, ASCII, and Assigned.

Fixes #70781.

Change-Id: I50ff024d99255338fa8d92663881acb47f1e92a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/641377
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2025-04-18 14:13:38 -07:00
..
archive/tar io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
crypto crypto/tls: relax native FIPS 140-3 mode 2025-03-13 13:33:22 -07:00
debug/elf debug/elf: add riscv attributes definitions 2025-03-14 15:08:23 -07:00
go api: move go1.25 to next/70250 2025-04-03 08:07:11 -07:00
io/fs io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
mime/multipart mime/multipart: add helper to build content-disposition header contents 2025-03-12 16:20:01 -07:00
net doc/next: fix link 2025-04-07 13:59:43 -07:00
os os: support overlapped IO with NewFile 2025-04-04 14:00:21 -07:00
regexp/syntax regexp/syntax: recognize category aliases like \p{Letter} 2025-04-18 14:13:38 -07:00
sync sync: add WaitGroup.Go 2025-04-04 08:19:32 -07:00
testing/fstest io/fs: add ReadLinkFS interface 2025-02-03 08:38:43 -08:00
unicode unicode: add CategoryAliases, Cn, LC 2025-04-18 14:13:31 -07:00
0-heading.md doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00
README doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00

README

API changes and other small changes to the standard library go here.