From 54ba8e130244f97ddc7a092fd09a8f4367996cc1 Mon Sep 17 00:00:00 2001 From: noerw Date: Mon, 8 Aug 2016 09:33:34 +0200 Subject: [PATCH] fix badges for non-standard cases always return a valid badge, default color blue --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index cacc46d..609fe51 100755 --- a/index.js +++ b/index.js @@ -50,6 +50,7 @@ ejs.filters.badge = function (t) { img += 'red'; break; default: + img += 'blue'; break; } @@ -85,4 +86,4 @@ var data = { data.prepend = argv.prepend ? fs.readFileSync(argv.prepend).toString() : null; fs.writeFileSync(argv.output, template(data)); -console.log('Wrote apidoc-markdown template output to: ' + argv.output); \ No newline at end of file +console.log('Wrote apidoc-markdown template output to: ' + argv.output);