mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
bugfix: fix regular expression for apt
This commit is contained in:
parent
b7777d265e
commit
24e23f3db4
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+"?([^ "\t\r\n\f]+)"?\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…
Add table
Reference in a new issue