File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def parse_file(path)
1919 IO . foreach ( path ) do |line |
2020 next if line . match ( /^\s *(#|\r ?\n |\s *$)/ ) # skip lines with only comments or whitespace
2121
22- matchdata = line . match ( /^\s *([h|H]ost)(.*$)/ )
22+ matchdata = line . match ( /^\s *([h|H]ost\s )(.*$)/ )
2323 if matchdata
2424 name = matchdata . captures [ 1 ] . strip
2525 entries [ name ] = { }
Original file line number Diff line number Diff line change 2121 content << 'and_also_with=equal sign'
2222 content << 'Host second with extra patterns'
2323 content << ' Extra_spaces did_not_matter'
24+ content << ' HostName option is correctly matched'
2425 content << ' Multiple_words not a problem'
2526 content << ' We "can handle quotes"'
2627 end
3940 content << ''
4041 content << 'Host second with extra patterns'
4142 content << ' Extra_spaces did_not_matter'
43+ content << ' HostName option is correctly matched'
4244 content << ' Multiple_words not a problem'
4345 content << ' We "can handle quotes"'
4446 content << ''
You can’t perform that action at this time.
0 commit comments