X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=9d475ed89c8f2f17713b3aabdc9aa6c79d93d4df;hb=77f4f8ef18caeb6cc96f114cc9a000bc72e19d1b;hp=2c814ea33d834cbe5001eede20eecc0755059695;hpb=8720504a4ba0e0df8fc3932f3eb55a63decc8e9a;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 2c814ea3..9d475ed8 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -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