public function MarkupGenerator::validateUrl in Heartbeat 8
Parameters
$url:
Return value
mixed
Overrides Parser::validateUrl
File
- modules/
statusmessage/ src/ MarkupGenerator.php, line 36
Class
- MarkupGenerator
- Class MarkupGenerator.
Namespace
Drupal\statusmessageCode
public function validateUrl($text) {
preg_match_all('#\\bhttps?://[^,\\s()<>]+(?:\\([\\w\\d]+\\)|([^,[:punct:]\\s]|/))#', $text, $this->match);
return $this->match;
}