fix for apache_conf to handle quoted Includes (#3193)

Signed-off-by: Stanislav Voroniy <stas@voroniy.com>
This commit is contained in:
Stanislav Voroniy 2018-07-05 22:38:58 +02:00 committed by Clinton Wolfe
parent d0e2608ec3
commit 4112085ff7

View file

@ -82,7 +82,7 @@ module Inspec::Resources
# The regex is terminated by an expression that matches zero or more spaces.
params = SimpleConfig.new(
raw_conf,
assignment_regex: /^\s*(\S+)\s+((?=.*\s+$).*?|.*)\s*$/,
assignment_regex: /^\s*(\S+)\s+['"]*((?=.*\s+$).*?|.*?)['"]*\s*$/,
multiple_values: true,
).params