Commit d974ea6 1 parent f800239 commit d974ea6 Copy full SHA for d974ea6
File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version: 6.0
1
+ // swift-tools-version: 5.8
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
@@ -22,3 +22,14 @@ let package = Package(
22
22
) ,
23
23
]
24
24
)
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
+
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ This package extends the Swift Foundation framework with extensions to existing
12
12
### String
13
13
14
14
- `` Swift/String/dateFormat ``
15
- - `` Swift/String/levenshteinDistance(to:) ``
16
-
17
- ### StringProtocol
18
-
19
- - `` Swift/StringProtocol/subscript(index:) ``
15
+ - `` Swift/String/levenshteinDistance(to:) ``
20
16
21
17
### CaseIterable
22
18
Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ public extension String {
43
43
if contains ( regex. 0 ) {
44
44
return regex. 1
45
45
}
46
- }
46
+ }
47
47
return " dd.MM.yyyy "
48
48
}
49
49
}
50
50
51
51
public extension String {
52
- /// Calculate the levenshtein distance `self` and another String.
52
+ /// Calculate the levenshtein distance between `self` and another String.
53
53
/// - Parameter s2: The other string to compare `self` to.
54
54
/// - Returns: The levenshtein distance.
55
55
@inlinable
You can’t perform that action at this time.
0 commit comments