update pattern, fix issue when there is no 'http' in inputed url
tests