Skip to content

Commit d69546e

Browse files
committed
Fix
1 parent 2bd2e8b commit d69546e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/utils/validators.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ bool isJSON(String value) {
367367
}
368368

369369
bool isLatitude(String value) {
370+
value = value.replaceAll(',', '.');
371+
370372
final double? latitude = double.tryParse(value);
371373
if (latitude == null) {
372374
return false;
@@ -375,6 +377,8 @@ bool isLatitude(String value) {
375377
}
376378

377379
bool isLongitude(String value) {
380+
value = value.replaceAll(',', '.');
381+
378382
final double? longitude = double.tryParse(value);
379383
if (longitude == null) {
380384
return false;

0 commit comments

Comments
 (0)