Use string interpolation
This commit is contained in:
parent
ffb345ccb5
commit
291beb45fc
40 changed files with 53 additions and 53 deletions
|
@ -26,7 +26,7 @@ export const replacement = (match: string, key: string) => {
|
|||
arg == 'B' ? 'fab' :
|
||||
'';
|
||||
} else if (arg.startsWith('.')) {
|
||||
classes.push('fa-' + arg.substr(1));
|
||||
classes.push(`fa-${arg.substr(1)}`);
|
||||
} else if (arg.startsWith('-')) {
|
||||
transform = arg.substr(1).split('|').join(' ');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue