comic-image ( url -- image )


Vocabulary
xkcd.private

Inputs
urlan object


Outputs
imagean object


Definition


: comic-image ( url -- image )
http-get nip
R/ \/\/imgs\.xkcd\.com\/comics\/[^\.]+\.(png|jpg)/
first-match >string "https:" prepend load-http-image ;