mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #6561: '\d' in a regular expression should match only Unicode
character category [Nd], not [No].
This commit is contained in:
parent
6bd13fbbc8
commit
1f268285ff
4 changed files with 32 additions and 6 deletions
|
@ -168,7 +168,7 @@ static unsigned int sre_lower_locale(unsigned int ch)
|
|||
|
||||
#if defined(HAVE_UNICODE)
|
||||
|
||||
#define SRE_UNI_IS_DIGIT(ch) Py_UNICODE_ISDIGIT((Py_UNICODE)(ch))
|
||||
#define SRE_UNI_IS_DIGIT(ch) Py_UNICODE_ISDECIMAL((Py_UNICODE)(ch))
|
||||
#define SRE_UNI_IS_SPACE(ch) Py_UNICODE_ISSPACE((Py_UNICODE)(ch))
|
||||
#define SRE_UNI_IS_LINEBREAK(ch) Py_UNICODE_ISLINEBREAK((Py_UNICODE)(ch))
|
||||
#define SRE_UNI_IS_ALNUM(ch) Py_UNICODE_ISALNUM((Py_UNICODE)(ch))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue