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 | abb00bef14f0b10f0e74b7b470dd029ab29f63c1 (patch) | |
| tree | aaad53671c6201b41ae84342549bcef6256d0981 /lib | |
| parent | 60455a9010788115e25a43df3e3318a11204e98d (diff) | |
| download | ruby-abb00bef14f0b10f0e74b7b470dd029ab29f63c1.tar.gz ruby-abb00bef14f0b10f0e74b7b470dd029ab29f63c1.tar.xz ruby-abb00bef14f0b10f0e74b7b470dd029ab29f63c1.zip | |
* lib/date/format.rb (strptime): removed \v; since \s includes \v.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 a83b29802..b30cf3a41 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 |
