mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 14:12:01 +09:00
B OpenNebula/one#7069: fix kvmrc ruby parser regexp (#3729)
This commit is contained in:
1 parent
36918fdd01
commit
cb9ae8bc08
1 file changed
+1
-1
@@ -50,7 +50,7 @@ module VirtualMachineManagerKVM
|
||||
File.readlines(path).each do |l|
|
||||
next if l.empty? || l[0] == '#'
|
||||
|
||||
m = l.match(/(export)?[[:blank:]]*([^=]+)=([^[[:blank:]]]+)$/)
|
||||
m = l.match(/(export)?[[:blank:]]*([^=]+)=([[:blank:]]*(['"]).*?\4|[^#\n]*)/)
|
||||
|
||||
next unless m
|
||||
|
||||
|
||||
Reference in new issue
Block a user