summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-05-08 16:19:29 (GMT)
committerGitHub <noreply@github.com>2022-05-08 16:19:29 (GMT)
commita84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7 (patch)
tree5a129f41f7e8c49aa7ffa3f3d874ff9cd41751a8 /Misc
parent7b024e3a3f77027f747da7580ed0a3ed2dec276a (diff)
downloadcpython-a84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7.zip
cpython-a84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7.tar.gz
cpython-a84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7.tar.bz2
gh-91760: More strict rules for numerical group references and group names in RE (GH-91792)
Only sequence of ASCII digits is now accepted as a numerical reference. The group name in bytes patterns and replacement strings can now only contain ASCII letters and digits and underscore.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-04-21-19-14-29.gh-issue-91760.54AR-m.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-21-19-14-29.gh-issue-91760.54AR-m.rst b/Misc/NEWS.d/next/Library/2022-04-21-19-14-29.gh-issue-91760.54AR-m.rst
new file mode 100644
index 0000000..ac3e7cd
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-04-21-19-14-29.gh-issue-91760.54AR-m.rst
@@ -0,0 +1,5 @@
+Apply more strict rules for numerical group references and group names in
+regular expressions. Only sequence of ASCII digits is now accepted as
+a numerical reference. The group name in
+bytes patterns and replacement strings can now only contain ASCII letters
+and digits and underscore.