File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def parse_file(path)
19
19
IO . foreach ( path ) do |line |
20
20
next if line . match ( /^\s *(#|\r ?\n |\s *$)/ ) # skip lines with only comments or whitespace
21
21
22
- matchdata = line . match ( /^\s *([h|H]ost)(.*$)/ )
22
+ matchdata = line . match ( /^\s *([h|H]ost\s + )(.*$)/ )
23
23
if matchdata
24
24
name = matchdata . captures [ 1 ] . strip
25
25
entries [ name ] = { }
Original file line number Diff line number Diff line change 21
21
content << 'and_also_with=equal sign'
22
22
content << 'Host second with extra patterns'
23
23
content << ' Extra_spaces did_not_matter'
24
+ content << ' HostName option is correctly matched'
24
25
content << ' Multiple_words not a problem'
25
26
content << ' We "can handle quotes"'
26
27
end
39
40
content << ''
40
41
content << 'Host second with extra patterns'
41
42
content << ' Extra_spaces did_not_matter'
43
+ content << ' HostName option is correctly matched'
42
44
content << ' Multiple_words not a problem'
43
45
content << ' We "can handle quotes"'
44
46
content << ''
You can’t perform that action at this time.
0 commit comments