summaryrefslogtreecommitdiff
path: root/sample/from.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/from.rb')
-rw-r--r--sample/from.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/from.rb b/sample/from.rb
index f660294..a8baf4f 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -17,8 +17,8 @@ module ParseDate
if date.sub(/\s+(\d+:\d+(:\d+)?)/, ' ')
time = $1
end
- if date =~ /19\d\d/
- year = $&
+ if date =~ /19(\d\d)/
+ year = $1
end
if date.sub(/\s*(\d+)\s+(#{MONTHPAT})\S*\s+/, ' ')
dayofmonth = $1