mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
bugfix: parse " with apt urls
This commit is contained in:
parent
3a5d091efb
commit
a407e3b6ce
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class AptRepository < Vulcano.resource(1)
|
|||
active = false if raw_line != line
|
||||
|
||||
# eg.: deb http://archive.ubuntu.com/ubuntu/ wily main restricted
|
||||
parse_repo = /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/.match(line)
|
||||
parse_repo = /^\s*(\S+)\s+"+(\S+)"+\s+(\S+)\s+(.*)$/.match(line)
|
||||
|
||||
# check if we got any result and the second param is an url
|
||||
next if parse_repo.nil? || !parse_repo[2] =~ HTTP_URL_RE
|
||||
|
|
Loading…
Reference in a new issue