What is the issue with the URL Standard?
https://url.spec.whatwg.org/#ends-in-a-number-checker
-
If the last item in parts is the empty string, then:
- If parts’s size is 1, then return false.
This can only be true if the input is the empty string. However, the empty string is never fed to the "ends in a number checker":
Transforming this branch into an assert might be good. Or, if we want to keep the "ends in a number checker" generic, maybe a note explaining this would be good.
(Found while working on jsdom/whatwg-url#268)
What is the issue with the URL Standard?
https://url.spec.whatwg.org/#ends-in-a-number-checker
This can only be true if the input is the empty string. However, the empty string is never fed to the "ends in a number checker":
Transforming this branch into an assert might be good. Or, if we want to keep the "ends in a number checker" generic, maybe a note explaining this would be good.
(Found while working on jsdom/whatwg-url#268)