Skip to content

Commit

Permalink
Remove unnecessary self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
joebez committed Jan 5, 2024
1 parent e055eba commit f641068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HyphenableText/HyphenableText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public extension String {
/// CFStringIsHyphenationAvailableForLocale(_:) returns true. Consider
/// using CFStringTokenizer to eliminate this assumption.
func softHyphenateByWord(minimumWordLength: Int = 0, withLocale locale: Locale = .autoupdatingCurrent) -> Self {
var substringArray: [String] = self.split(separator: " ", omittingEmptySubsequences: false).map({ String($0) })
var substringArray: [String] = split(separator: " ", omittingEmptySubsequences: false).map({ String($0) })

for (i, substring) in substringArray.enumerated() {
if substring.count >= minimumWordLength {
Expand Down

0 comments on commit f641068

Please sign in to comment.