diff --git a/src/FontAwesomeComponent.php b/src/FontAwesomeComponent.php index 8e27a6d..fe11cca 100644 --- a/src/FontAwesomeComponent.php +++ b/src/FontAwesomeComponent.php @@ -72,7 +72,7 @@ private function getSvg(string $package, string $style, string $name) : array $match = null; - if (! preg_match('~~', $contents, $match)) { + if (! preg_match('~|>)~', $contents, $match)) { throw new \RuntimeException('Invalid icon, failed to parse svg'); }