Skip to content

Commit ee48dba

Browse files
committed
[Hotfix] turn off segasimals support
1 parent 231963f commit ee48dba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/Yams/Constructor.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ extension ScalarConstructible where Self: FloatingPoint & SexagesimalConvertible
261261
return .nan
262262
default:
263263
let string = scalar.string.replacingOccurrences(of: "_", with: "")
264-
if string.contains(":") {
265-
return Self(sexagesimal: string)
266-
}
264+
// if string.contains(":") {
265+
// return Self(sexagesimal: string)
266+
// }
267267
return .create(from: string)
268268
}
269269
}
@@ -299,9 +299,9 @@ private extension FixedWidthInteger where Self: SexagesimalConvertible {
299299
for (prefix, radix) in prefixToRadix where scalar.hasPrefix(prefix) {
300300
return Self(signPrefix + scalar.dropFirst(prefix.count), radix: radix)
301301
}
302-
if scalar.contains(":") {
303-
return Self(sexagesimal: scalarWithSign)
304-
}
302+
// if scalar.contains(":") {
303+
// return Self(sexagesimal: scalarWithSign)
304+
// }
305305
return Self(scalarWithSign)
306306
}
307307
}

0 commit comments

Comments
 (0)