From 70344311977b5c96c497f2f11e4bec383eaf62c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Dra=CC=A8z=CC=87ek?= Date: Tue, 19 Apr 2016 14:59:20 +0200 Subject: [PATCH] Fixes problem with multiple spaces or special chars in the directory name. Uses /g regexp option to replace all occurances of not accepted chars. --- lib/project-shell-env.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/project-shell-env.coffee b/lib/project-shell-env.coffee index 3fd960f..c6a6065 100644 --- a/lib/project-shell-env.coffee +++ b/lib/project-shell-env.coffee @@ -15,7 +15,7 @@ debug = ( statements... ) -> # @return [String] # shellEscape = ( string ) -> - return string.replace( /([^A-Za-z0-9_\-.,:\/@])/, "\\$1" ) + return string.replace( /([^A-Za-z0-9_\-.,:\/@])/g, "\\$1" ) ## # Returns shell environment variables in the given directory as string.