Commit 85b5fdd6 authored by Alexander Wirt's avatar Alexander Wirt

Fix regex

parent 64c8a879
......@@ -48,9 +48,10 @@ def parse_definitions()
Dir.glob("#{ @config['general']['definitions'] }/*.conf").each do|f|
$log.info("Parse definition file #{ f }")
File.readlines(f).each do |line|
next if line =~ /^(\S+#|$)/
next if line =~ /^(\s*#|$)/
matches = /^([^\s]+)\s+([^\s]+)/.match(line)
if matches
$log.debug("Match line #{ line }")
projects[matches[1]] = matches[2]
else
$log.warn("unmatched line #{ line }")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment