Closed tkrissuu closed 1 year ago
While URI paths can have uppercase characters, the scheme and authority of the URI is always lowercase, though web browsers would normally auto-correct the scheme and authority to lowercase. I think the problem has to do with the regex expression found in gen_urls() failing to account for uppercase characters in the URI scheme and authority.
I am getting wrong indices when the domain name of a URL contains uppercase characters.
To reproduce:
Output is: