vingtetun/gaia — comment on commit c01887d34f7c723fbf6dd5bfc62ae8bc7431d4e2
File:  line 0
By benfrancis:

My regex isn't too hot, but that looks like it now wouldn't prepend "http://" if I enter something like localhost:8080 ?

Parsing URLs can be tricky, I was hoping there might be an existing library to help with this rather than trying to build our own regexs from scratch, that's why I hadn't got around to implementing web search yet either.

What do you think? Is this good enough for the demo? Maybe we could improve it in a follow up. Apart from this, r+me (I'm picking up the Mozilla lingo, did I say it right?)