apache-vhosts-parser 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/apache-vhosts-parser.rb +3 -1
- metadata +1 -1
data/lib/apache-vhosts-parser.rb
CHANGED
@@ -50,7 +50,9 @@ module ApacheVhostsParser
|
|
50
50
|
}
|
51
51
|
|
52
52
|
str.split(/\n+/).map(&:strip).each do |line|
|
53
|
-
if
|
53
|
+
if line = /^$/
|
54
|
+
#ignore the line
|
55
|
+
elsif m = line.match(/<\s*(\w+)(.*?)>$/)
|
54
56
|
opener, rest = m[1], m[2].to_s.strip.split(/\s+/)
|
55
57
|
new_tag = {
|
56
58
|
name: opener.downcase,
|