-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let Str::isUrl() check more URLs (#2759)
- Loading branch information
1 parent
9c11220
commit 0432503
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,8 @@ public function it_checks_for_a_url() | |
{ | ||
$this->assertTrue(Str::isUrl('http://example.com')); | ||
$this->assertTrue(Str::isUrl('https://example.com')); | ||
$this->assertTrue(Str::isUrl('ftp://example.com')); | ||
$this->assertTrue(Str::isUrl('mailto:[email protected]')); | ||
$this->assertTrue(Str::isUrl('/relative')); | ||
$this->assertFalse(Str::isUrl('test')); | ||
} | ||
|