Skip to content

Commit 74a1659

Browse files
authored
Update Font Awesome style prefixes to include 'thin'
1 parent 1332a77 commit 74a1659

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

config/var/www/admin/control-panel/external-services/external-services.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,14 @@ export class ExternalServicesManager {
880880
let iconName = null;
881881

882882
for (const part of parts) {
883-
// Font Awesome shorthand style prefixes: r=regular, s=solid, b=brands, d=duotone, l=light (far/fas/fab/fad/fal)
884-
if (/^fa[rsbdl]$/.test(part) || /^fa-(solid|regular|brands|light|duotone)$/.test(part)) {
883+
// Font Awesome shorthand style prefixes: r=regular, s=solid, b=brands, d=duotone, l=light, t=thin (far/fas/fab/fad/fal/fat)
884+
if (/^fa[rsbdlt]$/.test(part) || /^fa-(solid|regular|brands|light|duotone|thin)$/.test(part)) {
885885
stylePrefix = part;
886886
continue;
887887
}
888888

889889
if (!iconName && /^fa-[a-z0-9-]+$/.test(part) && !FA_ICON_MODIFIER_PATTERN.test(part)) {
890+
iconName = part;
890891
}
891892
}
892893

0 commit comments

Comments
 (0)