00ccb449907d322c6bfa53f17e96cbf48651fee3
- Author
- Hugo Stijns <hugo@boosboos.net>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(vagrant): Allow dot in Vagrant box name (#4803)
Diff
1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
2index 3e16dbebf70330ddedab87b1274298b81bb390cb..e888355063bbdd49c0f163f8609fe5b1018dc486 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -69,7 +69,7 @@ __box_list ()
6
7 __vm_list ()
8 {
9- _wanted application expl 'command' compadd $(command grep "${VAGRANT_CWD:-.}/Vagrantfile" -oe '^[^#]*\.vm\.define *[:"]\([a-zA-Z0-9_-]\+\)' 2>/dev/null | awk '{print substr($2, 2)}')
10+ _wanted application expl 'command' compadd $(command grep "${VAGRANT_CWD:-.}/Vagrantfile" -oe '^[^#]*\.vm\.define *[:"]\([a-zA-Z0-9\._-]\+\)' 2>/dev/null | awk '{print substr($2, 2)}')
11 _wanted application expl 'command' compadd $(command ls "${VAGRANT_CWD:-.}/.vagrant/machines/" 2>/dev/null)
12 }
13