Skip to content

Commit

Permalink
Ensure quotes match
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Parsons committed May 23, 2020
1 parent 68310b7 commit ac7fe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embed-fontawesome.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function embedIcons($content)
{
// Get all matches for icons
if (preg_match_all(
'/<i (?<preClass>[a-zA-Z0-9 _="\'-]*)(?<= )class=(?:"|\')(?<classPreFA>[a-zA-Z0-9 :_-]*)(?<weightFA>(?:fa[srlbd]?)|(?:icon)) (?<classMidFA>((?!((fa)|(icon)))[a-zA-Z0-9 _-]*)*)(?<= )(?<iconType>fa|icon)-(?<iconFA>[a-z0-9-]+)(?<classPostFA>[a-zA-Z0-9 :_-]*)(?:"|\')(?<postClass>[a-zA-Z0-9 _="\'-]*)><\/i>/',
'/<i (?<preClass>[a-zA-Z0-9 _="\'-]*)(?<= )class=(?<quot>"|\')(?<classPreFA>[a-zA-Z0-9 :_-]*)(?<=( |\k<quot>))(?<weightFA>(?:fa[srlbd]?)|(?:icon)) (?<classMidFA>((?!((fa)|(icon)))[a-zA-Z0-9 _-]*)*)(?<= )(?<iconType>fa|icon)-(?<iconFA>[a-z0-9-]+)(?<classPostFA>[a-zA-Z0-9 :_-]*)\k<quot>(?<postClass>[a-zA-Z0-9 _="\'-]*)><\/i>/',
$content,
$matchesRaw
)) {
Expand Down

0 comments on commit ac7fe10

Please sign in to comment.