Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c180f4f13ba14061a9e15f4944454fd9fe4b024a 1 parent 1b62c62
@pauldix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/domainatrix/domain_parser.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.