Merge pull request #4713 from aspiers/silence-nfs-warnings

silence warnings about unescaped '-' in re char class
This commit is contained in:
Mitchell Hashimoto 2014-10-25 14:25:37 -07:00
commit 4cab663189
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module VagrantPlugins
user = Process.uid
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)
logger.debug("Valid ID: #{id}")
else