mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
The default inflections are nonisolated
This commit is contained in:
1 parent
f48f0c132d
commit
491ceca46c
2 files changed
+2
-2
No files matched your search
@@ -44,7 +44,7 @@
|
||||
|
||||
extension Inflections {
|
||||
/// The default inflections
|
||||
public static var `default`: Inflections = {
|
||||
nonisolated(unsafe) public static var `default`: Inflections = {
|
||||
// Defines the standard inflection rules. These are the starting point
|
||||
// for new projects and are not considered complete. The current set of
|
||||
// inflection rules is frozen. This means, we do not change them to
|
||||
|
||||
@@ -31,7 +31,7 @@ extension String {
|
||||
/// A type that controls GRDB string inflections.
|
||||
///
|
||||
/// - note: [**🔥 EXPERIMENTAL**](https://github.com/groue/GRDB.swift/blob/master/README.md#what-are-experimental-features)
|
||||
public struct Inflections {
|
||||
public struct Inflections: Sendable {
|
||||
private var pluralizeRules: [(NSRegularExpression, String)] = []
|
||||
private var singularizeRules: [(NSRegularExpression, String)] = []
|
||||
private var uncountablesRegularExpressions: [String: NSRegularExpression] = [:]
|
||||
|
||||
Reference in new issue
Block a user