URI.extract issue

require ‘uri’
URI.extract(“xczc http://www.google.com/';return fsfasjunkdfsfsadf c”)
=> [“http://www.google.com/';return”]

T.