Skip to content

Commit 4e89d97

Browse files
committed
build time improvements
1 parent 7e8971e commit 4e89d97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Pod/Classes/StringExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public extension String {
119119
}
120120

121121
func initialsFirstAndLast() -> String {
122-
let words = self.componentsSeparatedByString(" ")
123-
return words.reduce("") { ($0 == "" ? "" : $0[0...0]) + $1[0...0]}
122+
let words = componentsSeparatedByString(" ")
123+
return words.reduce("") { "\($0.isEmpty ? "" : $0[0...0])\($1[0...0])" }
124124
}
125125

126126
func isAlpha() -> Bool {

SwiftString.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftString"
3-
s.version = "0.5.1"
3+
s.version = "0.5.2"
44
s.summary = "A lightweight string extension for Swift"
55

66
s.description = <<-DESC

0 commit comments

Comments
 (0)