Skip to content

Commit

Permalink
Trim values for icons replacement syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Nov 17, 2020
1 parent 012aff8 commit 270a20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,9 @@ export const handleIcons = myString => {
const leopardInfo = group1.split("|");
// console.log(leopardInfo);

if (leopardInfo.length > 0 && leopardInfo[0] === "i") {
if (leopardInfo.length > 0 && leopardInfo[0].trim() === "i") {
let html = `<i aria-hidden="true" class="v-icon mdi mdi-${leopardInfo[1]} ${
leopardInfo[2] ? leopardInfo[2].toLowerCase() + "--text" : ""
leopardInfo[2] ? leopardInfo[2].trim().toLowerCase() + "--text" : ""
}"></i>`;
reformattedStr += html;
}
Expand Down

0 comments on commit 270a20d

Please sign in to comment.