1. Armin Rigo
  2. cpython-withatomic

Commits

Andrew Kuchling  committed 3938e6e

[Bug #848556] Remove \d* from second alternative to avoid exponential case when repeating match

  • Participants
  • Parent commits 3de8a58
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/lib/libre.tex

View file
  • Ignore whitespace
   \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}}