X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=9d475ed89c8f2f17713b3aabdc9aa6c79d93d4df;hb=dbc63738d8b497c03bfb81c84e61161bb5c7931a;hp=2c814ea33d834cbe5001eede20eecc0755059695;hpb=2177bb0e95a5ec8797f5a0d47bd2070666a92653;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