Util.quote_path now avoids more unnecessary quoting

This commit is contained in:
Johan Holmberg
2014-01-24 16:57:24 +01:00
parent 21ac1f4f01
commit c6249ab10d

View File

@ -54,7 +54,7 @@ module Cmdtest
end
def self.quote_path(str)
needed = (str =~ /[^a-zA-Z0-9_]/)
needed = (str =~ /[^-\\a-zA-Z0-9_:]/)
return needed ? '"' + str.gsub('"', '\"') + '"' : str
end