diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 22:33:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 22:38:06 +0000 |
commit | dfbefc7cb72b2c60e2cb076b33a5964e1be21f33 (patch) | |
tree | 24a931ea0d55f83d3ead5c4e5f48d352a3ebcb38 /lib | |
parent | 6bcea2bb60824600dd4e46956290efbad434532b (diff) | |
download | dtas-dfbefc7cb72b2c60e2cb076b33a5964e1be21f33.tar.gz |
Regexps are hard to write sometimes :x Anyways, we should support using floating-point internally for users who prefer it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |