|
@@ -28,6 +28,9 @@ func TestIsRelativePath(t *testing.T) {
|
|
|
"http://example.org/file.ext": false,
|
|
"http://example.org/file.ext": false,
|
|
|
"//example.org/file.ext": false,
|
|
"//example.org/file.ext": false,
|
|
|
"//example.org": false,
|
|
"//example.org": false,
|
|
|
|
|
+ `/\example.org`: false,
|
|
|
|
|
+ `\example.org`: false,
|
|
|
|
|
+ `path\to\file.ext`: false,
|
|
|
"ftp://example.org/file.ext": false,
|
|
"ftp://example.org/file.ext": false,
|
|
|
"mailto:user@example.org": false,
|
|
"mailto:user@example.org": false,
|
|
|
"magnet:?xt=urn:btih:example": false,
|
|
"magnet:?xt=urn:btih:example": false,
|