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

Commit f86eaa9

Browse files
committed
Adds comment to clarify tricky preg check
1 parent ec0c147 commit f86eaa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Uri.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ private function filterPath(string $path) : string
603603
*/
604604
private function filterInvalidUtf8(string $string) : string
605605
{
606+
// check if given string contains only valid UTF-8 characters
606607
if (preg_match('//u', $string)) {
607608
return $string;
608609
}

0 commit comments

Comments
 (0)