Skip to content

Commit

Permalink
remove not needed repeated call
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Feb 14, 2024
1 parent 2f3a0df commit 8abd359
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ export function formatFontFaceName( input ) {
.split( ',' )
// finds the first item that is not an empty string.
.find( ( item ) => item.trim() !== '' )
.trim()
// removes leading and trailing quotes.
.replace( /^["']|["']$/g, '' );
.trim();
}
// removes leading and trailing quotes.
output = output.replace( /^["']|["']$/g, '' );
Expand Down

0 comments on commit 8abd359

Please sign in to comment.