Permalink
Browse files

Strip non-ascii characters from times

  • Loading branch information...
1 parent c807f06 commit 000eab441553bf199982ef290bf523779619f375 @chendo committed Jan 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/metlinkr/step.rb
View
@@ -71,7 +71,7 @@ def clean_stop_name(stop)
end
def clean_time(time)
- time.gsub(/^.*,/, '').gsub(' ', '').strip
+ time.gsub(/^.*,/, '').gsub(/[^0-9a-z:]/, '').strip
end
end
end

0 comments on commit 000eab4

Please sign in to comment.