Skip to content

Commit

Permalink
Merge pull request #2 from AlexeyKorshun/fix_snake_case_parsing
Browse files Browse the repository at this point in the history
fix snake case parsing
  • Loading branch information
movch authored May 19, 2021
2 parents a02e5bd + 0be124e commit b2cd7f0
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 b2cd7f0

Please sign in to comment.