Skip to content

Commit

Permalink
fix snake case parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyKorshun committed May 19, 2021
1 parent a02e5bd commit 0be124e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FigmaAssetsFetch/Helpers/StringExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ extension String {
return self
.stripped
.components(separatedBy: .whitespaces)
.map { $0.lowercased() }
.filter { !$0.isEmpty }
.map { $0.lowercasedFirstLetter }
.joined(separator: "_")
.lowercasedFirstLetter
}
}

0 comments on commit 0be124e

Please sign in to comment.