Skip to content

Commit

Permalink
Fixed a few URIs/URLs that were no longer passing validation (see asa…
Browse files Browse the repository at this point in the history
…skevich#118 for details).
  • Loading branch information
Daniel Lohse authored and Daniel Lohse committed Apr 11, 2016
1 parent cdb0cf3 commit a0f914f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func TestIsRequestURL(t *testing.T) {
expected bool
}{
{"", false},
{"http://foo.bar#com", true},
{"http://foo.bar/#com", true},
{"http://foobar.com", true},
{"https://foobar.com", true},
{"foobar.com", false},
Expand All @@ -667,7 +667,7 @@ func TestIsRequestURL(t *testing.T) {
{"rtmp://foobar.com", true},
{"http://www.foo_bar.com/", true},
{"http://localhost:3000/", true},
{"http://foobar.com#baz=qux", true},
{"http://foobar.com/#baz=qux", true},
{"http://foobar.com/t$-_.+!*\\'(),", true},
{"http://www.foobar.com/~foobar", true},
{"http://www.-foobar.com/", true},
Expand All @@ -694,7 +694,7 @@ func TestIsRequestURI(t *testing.T) {
expected bool
}{
{"", false},
{"http://foo.bar#com", true},
{"http://foo.bar/#com", true},
{"http://foobar.com", true},
{"https://foobar.com", true},
{"foobar.com", false},
Expand All @@ -716,7 +716,7 @@ func TestIsRequestURI(t *testing.T) {
{"rtmp://foobar.com", true},
{"http://www.foo_bar.com/", true},
{"http://localhost:3000/", true},
{"http://foobar.com#baz=qux", true},
{"http://foobar.com/#baz=qux", true},
{"http://foobar.com/t$-_.+!*\\'(),", true},
{"http://www.foobar.com/~foobar", true},
{"http://www.-foobar.com/", true},
Expand Down

0 comments on commit a0f914f

Please sign in to comment.