Merge pull request #5222 from simonjbeaumont/fix-regex
Allow colon in NFS ID regex
This commit is contained in:
commit
0cfe5ebfa6
|
@ -137,7 +137,7 @@ module VagrantPlugins
|
||||||
user = Process.uid
|
user = Process.uid
|
||||||
|
|
||||||
File.read("/etc/exports").lines.each do |line|
|
File.read("/etc/exports").lines.each do |line|
|
||||||
if id = line[/^# VAGRANT-BEGIN:( #{user})? ([\.\/A-Za-z0-9\-_]+?)$/, 2]
|
if id = line[/^# VAGRANT-BEGIN:( #{user})? ([\.\/A-Za-z0-9\-_:]+?)$/, 2]
|
||||||
if valid_ids.include?(id)
|
if valid_ids.include?(id)
|
||||||
logger.debug("Valid ID: #{id}")
|
logger.debug("Valid ID: #{id}")
|
||||||
else
|
else
|
||||||
|
|
|
@ -71,7 +71,7 @@ module VagrantPlugins
|
||||||
user = Process.uid
|
user = Process.uid
|
||||||
|
|
||||||
File.read("/etc/exports").lines.each do |line|
|
File.read("/etc/exports").lines.each do |line|
|
||||||
if id = line[/^# VAGRANT-BEGIN:( #{user})? ([\.\/A-Za-z0-9\-_]+?)$/, 2]
|
if id = line[/^# VAGRANT-BEGIN:( #{user})? ([\.\/A-Za-z0-9\-_:]+?)$/, 2]
|
||||||
if valid_ids.include?(id)
|
if valid_ids.include?(id)
|
||||||
logger.debug("Valid ID: #{id}")
|
logger.debug("Valid ID: #{id}")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue