summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorcamelmasa <camelmasa@gmail.com>2016-02-23 12:21:09 +0900
committercamelmasa <camelmasa@gmail.com>2016-02-23 12:21:09 +0900
commit589d938128d4e678a6ff02a002a33ae3776d3dc2 (patch)
tree1af6062c9679dabbd499afa28bd203b828005835 /README.md
parentf63fc9974313214612c348a00629b691e8e5a54d (diff)
downloadhashie-589d938128d4e678a6ff02a002a33ae3776d3dc2.tar.gz
Fix too fexible regex
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 346d3da..a99d207 100644
--- a/README.md
+++ b/README.md
@@ -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