"See" -> add more test + simplify the regex

This commit is contained in:
Lars Moelleken
2020-10-24 10:33:28 +02:00
parent 5a2dd88e14
commit e31c62da4c
2 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ final class See extends BaseTag implements Factory\StaticMethod
$description = isset($parts[1]) ? $descriptionFactory->create($parts[1], $context) : null;
// https://tools.ietf.org/html/rfc2396#section-3
if (preg_match('/\w:\/\/\w/i', $parts[0])) {
if (preg_match('#\w://\w#', $parts[0])) {
return new static(new Url($parts[0]), $description);
}