diff options
author | camelmasa <camelmasa@gmail.com> | 2016-02-23 12:21:09 +0900 |
---|---|---|
committer | camelmasa <camelmasa@gmail.com> | 2016-02-23 12:21:09 +0900 |
commit | 589d938128d4e678a6ff02a002a33ae3776d3dc2 (patch) | |
tree | 1af6062c9679dabbd499afa28bd203b828005835 | |
parent | f63fc9974313214612c348a00629b691e8e5a54d (diff) | |
download | hashie-589d938128d4e678a6ff02a002a33ae3776d3dc2.tar.gz |
Fix too fexible regex
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ class Tweet < Hash coerce_key :retweeted, ->(v) do case v when String - return !!(v =~ /^(true|t|yes|y|1)$/i) + return !!(v =~ /\A(true|t|yes|y|1)\z/i) when Numeric return !v.to_i.zero? else |