Closed
Description
Previous ID | SR-187 |
Radar | None |
Original Reporter | PatrickPijnappel (JIRA User) |
Type | Bug |
Status | Closed |
Resolution | Done |
Additional Detail from JIRA
Votes | 0 |
Component/s | Standard Library |
Labels | Bug, StarterBug |
Assignee | PatrickPijnappel (JIRA) |
Priority | Medium |
md5: 83c44df492df40d194828ff6d075d8fc
Issue Description:
The docs for Int(_, radix:)
lists the regex as being
[-+]?[0-9a-zA-Z]
but the exact regex for the code as is seems to be
(-+?|+?)[0-9a-zA-Z]*|-*0)
That is, it accepts these cases beyond what the docs specify:
-
Any number of minuses followed by a 0
-
A minus followed by a plus followed by any number
It seems unlikely this is by design, and contradicts the documentation by not returning nil in those cases.