Skip to content

Commit

Permalink
Merge pull request #5 from meirroth/main
Browse files Browse the repository at this point in the history
Regex tweak fixes #2
  • Loading branch information
GTANAdam authored May 23, 2021
2 parents 6730f29 + 9879df7 commit 1074a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const outputFile = `${outputFolder}/fontawesome-autogen.js`;
const matches = [
/(?<=icon:\s"+)fa.*?(?=",)/g, // Get icons within props or data
/(?<=default:\s"+)fa.*?(?=",)/g, // Get default icon values within props
/(?<=<fa\sicon="+).*?(?=")/g // Get icons within components
/(?<=<fa\s+icon="+).*?(?=")/g // Get icons within components
];

String.prototype.replaceAt = function(index, replacement) {
Expand Down

0 comments on commit 1074a31

Please sign in to comment.