Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Adds comment to clarify tricky preg check
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Oct 10, 2019
1 parent ec0c147 commit f86eaa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ private function filterPath(string $path) : string
*/
private function filterInvalidUtf8(string $string) : string
{
// check if given string contains only valid UTF-8 characters
if (preg_match('//u', $string)) {
return $string;
}
Expand Down

0 comments on commit f86eaa9

Please sign in to comment.