We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8971e commit 4e89d97Copy full SHA for 4e89d97
Pod/Classes/StringExtensions.swift
@@ -119,8 +119,8 @@ public extension String {
119
}
120
121
func initialsFirstAndLast() -> String {
122
- let words = self.componentsSeparatedByString(" ")
123
- return words.reduce("") { ($0 == "" ? "" : $0[0...0]) + $1[0...0]}
+ let words = componentsSeparatedByString(" ")
+ return words.reduce("") { "\($0.isEmpty ? "" : $0[0...0])\($1[0...0])" }
124
125
126
func isAlpha() -> Bool {
SwiftString.podspec
@@ -1,6 +1,6 @@
1
Pod::Spec.new do |s|
2
s.name = "SwiftString"
3
- s.version = "0.5.1"
+ s.version = "0.5.2"
4
s.summary = "A lightweight string extension for Swift"
5
6
s.description = <<-DESC
0 commit comments