mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
[Bug #848556] Remove \d* from second alternative to avoid exponential case when repeating match
This commit is contained in:
parent
aa95fdb783
commit
b7697a50fb
1 changed files with 1 additions and 1 deletions
|
|
@ -897,7 +897,7 @@ offers some more-or-less equivalent mappings between
|
|||
\lineii{\code{\%d}}
|
||||
{\regexp{[-+]?\e d+}}
|
||||
\lineii{\code{\%e}, \code{\%E}, \code{\%f}, \code{\%g}}
|
||||
{\regexp{[-+]?(\e d+(\e.\e d*)?|\e d*\e.\e d+)([eE][-+]?\e d+)?}}
|
||||
{\regexp{[-+]?(\e d+(\e.\e d*)?|\e.\e d+)([eE][-+]?\e d+)?}}
|
||||
\lineii{\code{\%i}}
|
||||
{\regexp{[-+]?(0[xX][\e dA-Fa-f]+|0[0-7]*|\e d+)}}
|
||||
\lineii{\code{\%o}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue