bugfix: handle https and fix broken regex capture