Sha256: a4ba3c7f45e4b0a09d299fb791e7d5b22bb7e0e2559aebbb1d6e2047f06caa70

Contents?: true

Size: 956 Bytes

Versions: 10

Compression:

Stored size: 956 Bytes

Contents

#encoding: UTF-8
module TestUrls
  VALID = [
    "http://google.com",
    "http://foobar.com/#",
    "http://google.com/#foo",
    "http://google.com/#search?q=iphone%20-filter%3Alinks",
    "http://twitter.com/#search?q=iphone%20-filter%3Alinks",
    "http://www.boingboing.net/2007/02/14/katamari_damacy_phon.html",
    "http://somehost.com:3000",
    "http://xo.com/~matthew+%-x",
    "http://en.wikipedia.org/wiki/Primer_(film)",
    "http://www.ams.org/bookstore-getitem/item=mbk-59",
    "http://chilp.it/?77e8fd",
    "www.foobar.com",
    "WWW.FOOBAR.COM",
    "http://tell.me/why",
    "http://longtlds.info",
    "http://✪df.ws/ejp",
    "http://日本.com",
    "http://search.twitter.com/search?q=avro&lang=en",
    "http://mrs.domain-dash.biz",
    "http://x.com/has/one/char/domain",
    "http://t.co/nwcLTFF",
    # "t.co/nwcLTFF"
  ]

  INVALID = [
    "http://no-tld",
    "http://tld-too-short.x",
    "http://-doman_dash.com"
  ]

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
twitter-text-1.2.4 spec/test_urls.rb
twitter-text-1.2.3 spec/test_urls.rb
twitter-text-1.2.2 spec/test_urls.rb
twitter-text-1.2.1 spec/test_urls.rb
twitter-text-1.2.0 spec/test_urls.rb
twitter-text-1.1.8 spec/test_urls.rb
twitter-text-1.1.7 spec/test_urls.rb
twitter-text-1.1.6 spec/test_urls.rb
twitter-text-1.1.5 spec/test_urls.rb
twitter-text-1.1.4 spec/test_urls.rb