fix #833 use better url regex