From dfbefc7cb72b2c60e2cb076b33a5964e1be21f33 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 22:33:54 +0000 Subject: format: fix switching to floating point samples Regexps are hard to write sometimes :x Anyways, we should support using floating-point internally for users who prefer it. --- lib/dtas/format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/format.rb') diff --git a/lib/dtas/format.rb b/lib/dtas/format.rb index 8313796..6da5675 100644 --- a/lib/dtas/format.rb +++ b/lib/dtas/format.rb @@ -113,7 +113,7 @@ class DTAS::Format # :nodoc: end def valid_type?(type) - !!(type =~ %r{\A[us](?:8|16|24|32)\z} || type =~ %r{\Af?:(32|64)}) + !!(type =~ %r{\A[us](?:8|16|24|32)\z} || type =~ %r{\Af(?:32|64)\z}) end def valid_endian?(endian) -- cgit v1.2.3-24-ge0c7