Also allow an optional preceding minus sign to be consistent with the ADIF specification.

pull/17/head
Christian Jacobs 2013-03-29 02:43:02 +00:00
rodzic d106de6745
commit 617415be17
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -156,7 +156,7 @@ class RecordDialog(Gtk.Dialog):
if(field_name == "FREQ"):
# Allow a decimal point before and/or after any numbers,
# but don't allow a decimal point on its own.
m = re.match("([0-9]+\.?[0-9]*)|([0-9]*\.?[0-9]+)", data)
m = re.match("-?(([0-9]+\.?[0-9]*)|([0-9]*\.?[0-9]+))", data)
if(m is None):
# Did not match anything.
return False