Permalink
Browse files

bug fix.

  • Loading branch information...
1 parent b9e79af commit fff6377e18cedc0be2423f0d21c14aab82a7dd01 @biwakonbu committed Feb 3, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 daisan_bot.rb
View
@@ -55,21 +55,21 @@ def concat_to(table)
array[-1].concat(x)
next
end
- array << ['']
+ array << x if /[^(平日便|土曜日便|夏期ダイヤ)]/ =~ x[0]
end
array
end
def collect_table(timetable)
text = ''
tweets = []
+ diagrum = ['平日便', '土曜日便', '夏期ダイヤ']
timetable.each do |wday|
time = []
wday.each do |index|
if /住道発|大学発/ =~ index
-<<<<<<< HEAD
- text = "#{index}】:\r\n"
+ text = "#{index}】:\n"
next
end
@@ -81,7 +81,7 @@ def collect_table(timetable)
end
text << ' ' << time.join.strip.chop
- tweets << text + "\r\n"
+ tweets << text + "\n"
end
if Time.now.wday < SATURDAY

0 comments on commit fff6377

Please sign in to comment.