提交 30ba7ee5 编写于 作者: A Aman Gupta

Expand double-negative in String#blank? regex

上级 64b9e93b
......@@ -90,7 +90,7 @@ class String
# ' '.blank? # => true
# ' something here '.blank? # => false
def blank?
self !~ /[^[:space:]]/
self =~ /\A[[:space:]]*\z/
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册