Permalink
Browse files

changed string.start_with to a regex comparison because 1.8.6 is a jerk

  • Loading branch information...
1 parent 1b62c62 commit c180f4f13ba14061a9e15f4944454fd9fe4b024a @pauldix committed Jan 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/domainatrix/domain_parser.rb
@@ -10,7 +10,7 @@ def initialize(file_name)
def read_dat_file(file_name)
File.readlines(file_name).each do |line|
line = line.strip
- unless line.start_with? "//" || line.empty?
+ unless (line =~ /\/\//) || line.empty?
parts = line.split(".").reverse
sub_hash = @tlds

0 comments on commit c180f4f

Please sign in to comment.