Bugfix of regex at FloatConvertor (version 2)#1944
Bugfix of regex at FloatConvertor (version 2)#1944i-Ching wants to merge 1 commit intoKludex:masterfrom i-Ching:patch-2
Conversation
For passing your checks of #1942 A correct statement is: regex = r"[0-9]+(\.[0-9]+)?" Reference: https://www.flake8rules.com/rules/W605.html I have no problem to corrected without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer. Having submitted last pull-request, I realized to add a 'r' prefix to pass your tests.
|
Sorry I do not know that I deleted my fork of starlette to affect this pull request. Now I reopen it. This bugfix To avoid 500 Internal Server Error of http://localhost:8000/path/1-1 as route pattern is /path/{number:float} |
|
I checked this PR, here are my observations. Case one: Case 2: This results in status code 404. Is this intended behavior? |
|
Can you confirm that there's a 500 on the case 2 before this PR? |
|
This is in master. |
|
Well... |
|
Okay, yes, I wasn't too sure about that. So yes, before PR, Case 2 results in 500. |
|
FYR: Here is the test used: iudeen@b429651 |
|
It looks like the original branch was deleted? |
For passing your checks of #1942 A correct statement is: regex = r"[0-9]+(\.[0-9]+)?" Reference: https://www.flake8rules.com/rules/W605.html
I have no problem of correction without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer. Having submitted last pull-request #1942, I realized to add a 'r' prefix to pass your tests.