I noticed this as I wanted to add CDN support for KeyCDN and was designing tests. Why is 1 added to the value of the parameter? This is not caught in any tests as none of the CDNs which use this function to parse URLs actually test their URL parsers.
I also admit I'm unsure for what the URL parsers are designed to accomplish. This would help me to know what I need to add.
This is your code for
getNumericParam
which is used to parse URLs of some CDNs like bunny and wordpress:I noticed this as I wanted to add CDN support for KeyCDN and was designing tests. Why is 1 added to the value of the parameter? This is not caught in any tests as none of the CDNs which use this function to parse URLs actually test their URL parsers.
I also admit I'm unsure for what the URL parsers are designed to accomplish. This would help me to know what I need to add.
Thanks!