fixed the regex in the helper to match address before the port