Closed kumar-ish closed 4 years ago
As in title. This probably isn't the most efficient way to do this since the string slicing is hard-coded, but I doubt that would be a problem (unless xkcd decides to change what they've done for the last x number of years). Fixes #482
Have you considered regex? r"https://xkcd\.com/\d+/"
r"https://xkcd\.com/\d+/"
This would also work, with re.match()
re.match()
Requested changes have been done (after approximately too long)
As in title. This probably isn't the most efficient way to do this since the string slicing is hard-coded, but I doubt that would be a problem (unless xkcd decides to change what they've done for the last x number of years). Fixes #482