Skip to content

Commit c9f2151

Browse files
Fix single-word camel case conversions
1 parent aafc4ef commit c9f2151

File tree

2 files changed

+85
-1
lines changed

2 files changed

+85
-1
lines changed

Sources/InAnyCase/InAnyCase.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private extension String {
8181

8282
func split(by ranges: [Range<String.Index>]) -> [Substring] {
8383
guard !ranges.isEmpty else {
84-
return []
84+
return [Substring(self)]
8585
}
8686

8787
var result: [Substring] = []

0 commit comments

Comments
 (0)