fix is_freq check
[spider.git] / perl / DXUtil.pm
index 2c814ea33d834cbe5001eede20eecc0755059695..9d475ed89c8f2f17713b3aabdc9aa6c79d93d4df 100644 (file)
@@ -351,7 +351,7 @@ sub is_pcflag
 # check that a thing is a frequency
 sub is_freq
 {
-       return $_[0] =~ /^[\d\.]+$/;
+       return $_[0] =~ /^\d+(?:\.\d+)?$/;
 }
 
 # check that a thing is just digits