From e0db9671ebcd2307767637c5f215ddf98684e6b4 Mon Sep 17 00:00:00 2001 From: Johan Date: Fri, 19 Mar 2021 00:01:15 +0700 Subject: [PATCH] update regex --- src/FontAwesomeComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }