diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 23:22:13 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 23:22:13 +0000 |
commit | cfed2cefb2de1762b50c8345b5048246d7cd7c7f (patch) | |
tree | aaad53671c6201b41ae84342549bcef6256d0981 /lib/date/format.rb | |
parent | df21038777f9b8339429f4427bf6d25f690b7eb5 (diff) | |
download | ruby-cfed2cefb2de1762b50c8345b5048246d7cd7c7f.tar.gz |
* lib/date/format.rb (strptime): removed \v; since \s includes \v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date/format.rb')
-rw-r--r-- | lib/date/format.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb index a83b29802e..b30cf3a41e 100644 --- a/lib/date/format.rb +++ b/lib/date/format.rb @@ -1,4 +1,4 @@ -# format.rb: Written by Tadayoshi Funaba 1999-2008 +# format.rb: Written by Tadayoshi Funaba 1999-2009 # $Id: format.rb,v 2.43 2008-01-17 20:16:31+09 tadf Exp $ class Date @@ -560,8 +560,8 @@ class Date end else case c - when /\A[\s\v]/ - str.sub!(/\A[\s\v]+/, '') + when /\A\s/ + str.sub!(/\A\s+/, '') else return unless str.sub!(Regexp.new('\\A' + Regexp.quote(a)), '') end |