[Pkg-javascript-commits] [node-tap-mocha-reporter] 50/137: util: minor style change
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:49:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.
commit 193afa73ce479f46eae2322f84ac09405830ca6c
Author: isaacs <i at izs.me>
Date: Sat May 2 10:04:10 2015 -0700
util: minor style change
---
lib/utils.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lib/utils.js b/lib/utils.js
index ac47027..6003768 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -26,10 +26,10 @@ var ignore = ['node_modules', '.git'];
exports.escape = function(html){
return String(html)
- .replace(/&/g, '&')
- .replace(/"/g, '"')
- .replace(/</g, '<')
- .replace(/>/g, '>');
+ .replace('&', '&')
+ .replace('"', '"')
+ .replace('<', '<')
+ .replace('>', '>');
};
/**
@@ -400,7 +400,8 @@ exports.stringify = function(value) {
for (var prop in value) {
if (Object.prototype.hasOwnProperty.call(value, prop)) {
- return jsonStringify(exports.canonicalize(value), 2).replace(/,(\n|$)/g, '$1');
+ return jsonStringify(exports.canonicalize(value), 2)
+ .replace(/,(\n|$)/g, '$1');
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git
More information about the Pkg-javascript-commits
mailing list