diff --git a/FigmaAssetsFetch/Helpers/StringExtensions.swift b/FigmaAssetsFetch/Helpers/StringExtensions.swift index db012f0..4de21d4 100644 --- a/FigmaAssetsFetch/Helpers/StringExtensions.swift +++ b/FigmaAssetsFetch/Helpers/StringExtensions.swift @@ -27,8 +27,8 @@ extension String { return self .stripped .components(separatedBy: .whitespaces) - .map { $0.lowercased() } + .filter { !$0.isEmpty } + .map { $0.lowercasedFirstLetter } .joined(separator: "_") - .lowercasedFirstLetter } }