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.