[Pkg-javascript-commits] [node-dargs] 15/54: disable quoting for now

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:41:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-dargs.

commit bd3b29c54753bb6cacfd21df656be48f5a938834
Author: Sindre Sorhus <sindresorhus at gmail.com>
Date:   Wed Aug 27 18:55:56 2014 +0200

    disable quoting for now
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index cf83f60..47ddb41 100644
--- a/index.js
+++ b/index.js
@@ -6,9 +6,9 @@ var escape = function (value) {
 
 var constructOption = function (name, value) {
 	name = name.replace(/[A-Z]/g, '-$&').toLowerCase();
-	var quotedVal = /\W/.test(value) ? ("'" + escape(value) + "'") : value;
+	//var quotedVal = /\s/.test(value) ? ("'" + escape(value) + "'") : value;
 
-	return '--' + name + (value ? "=" + quotedVal : '');
+	return '--' + name + (value ? "=" + value : '');
 };
 
 module.exports = function (options, excludes) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-dargs.git



More information about the Pkg-javascript-commits mailing list