Skip to content

Commit d974ea6

Browse files
committed
feat: new swift versions
1 parent f800239 commit d974ea6

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

Package.swift

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 5.8
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -22,3 +22,14 @@ let package = Package(
2222
),
2323
]
2424
)
25+
26+
let swiftSettings: [SwiftSetting] = [
27+
.enableUpcomingFeature("BareSlashRegexLiterals"),
28+
.enableUpcomingFeature("StrictConcurrency")
29+
]
30+
31+
for target in package.targets {
32+
target.swiftSettings = target.swiftSettings ?? []
33+
target.swiftSettings?.append(contentsOf: swiftSettings)
34+
}
35+

Sources/FoundationPlus/Documentation.docc/Documentation.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ This package extends the Swift Foundation framework with extensions to existing
1212
### String
1313

1414
- ``Swift/String/dateFormat``
15-
- ``Swift/String/levenshteinDistance(to:)``
16-
17-
### StringProtocol
18-
19-
- ``Swift/StringProtocol/subscript(index:)``
15+
- ``Swift/String/levenshteinDistance(to:)``
2016

2117
### CaseIterable
2218

Sources/FoundationPlus/Extensions/String+Extensions.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public extension String {
4343
if contains(regex.0) {
4444
return regex.1
4545
}
46-
}
46+
}
4747
return "dd.MM.yyyy"
4848
}
4949
}
5050

5151
public extension String {
52-
/// Calculate the levenshtein distance `self` and another String.
52+
/// Calculate the levenshtein distance between `self` and another String.
5353
/// - Parameter s2: The other string to compare `self` to.
5454
/// - Returns: The levenshtein distance.
5555
@inlinable

0 commit comments

Comments
 (0)