Skip to content

Commit

Permalink
Merge pull request #1 from k8n/patch-1
Browse files Browse the repository at this point in the history
Compatibility with tailwindcss-style class names
  • Loading branch information
Nathan Parsons authored Apr 25, 2020
2 parents 1a713c2 + 19c1023 commit ad504b0
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=(?:"|\')(?<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>/',
$content,
$matchesRaw
)) {
Expand Down

0 comments on commit ad504b0

Please sign in to comment.