Change regex to allow URL with no end slash

URL without end slash are now accepted