Merge pull request #104 from limichange/master

Simplify the function code, using the arrow function
This commit is contained in:
Sébastien Chopin 2017-01-05 21:04:32 +01:00 committed by GitHub
commit 18c694d5ce

View File

@ -2,12 +2,7 @@
exports.encodeHtml = (str) => str.replace(/</g, '&lt;').replace(/>/g, '&gt;') exports.encodeHtml = (str) => str.replace(/</g, '&lt;').replace(/>/g, '&gt;')
exports.getContext = function (req, res) { exports.getContext = (req, res) => ({ req, res })
return {
req: req,
res: res
}
}
exports.setAnsiColors = function (ansiHTML) { exports.setAnsiColors = function (ansiHTML) {
ansiHTML.setColors({ ansiHTML.setColors({