Skip to content

Commit 5e63417

Browse files
committed
Changed number parsing locale from en_US to en_US_POSIX.
1 parent b8c30d6 commit 5e63417

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/DiffableTextKitXNumber/Helpers/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ import Foundation
1919
// MARK: Constants
2020
//=------------------------------------------------------------------------=
2121

22-
@usableFromInline static let en_US = Locale(identifier: "en_US")
22+
@usableFromInline static let en_US_POSIX = Locale(identifier: "en_US_POSIX")
2323
}

Sources/DiffableTextKitXNumber/Models/Adapter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public struct NumberTextAdapter<Format: NumberTextFormat>: Equatable {
7676
}
7777

7878
@inlinable func value(_ number: Number) throws -> Value {
79-
try format.locale(Constants.en_US).parseStrategy.parse(number.description)
79+
try format.locale(Constants.en_US_POSIX).parseStrategy.parse(number.description)
8080
}
8181

8282
@inlinable func number(_ snapshot: Snapshot) throws -> Number {

0 commit comments

Comments
 (0)