Skip to content

Commit

Permalink
Escape backward slashes in synced folder id
Browse files Browse the repository at this point in the history
That fixes invalid share names in Windows guests, where backward slash
character is used as a path separator.
  • Loading branch information
legal90 committed Apr 2, 2017
1 parent 648f40f commit a5a5ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-parallels/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def driver(machine)
end

def os_friendly_id(id)
id.gsub(/[\/:]/,'_').sub(/^_/, '')
id.gsub(/[\/:\\]/,'_').sub(/^_/, '')
end
end
end
Expand Down

0 comments on commit a5a5ef2

Please # to comment.