Skip to content
This repository
Browse code

strip whitespace before #

  • Loading branch information...
commit 6a51108cb314e3904197a9b59fcc42bdbf5c290a 1 parent f29ab75
TJ Holowaychuk authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/api.js
6 lib/api.js
@@ -16,7 +16,11 @@ module.exports = function(comments){
16 16 buf.push('');
17 17 });
18 18
19   - return buf.join('\n');
  19 + buf = buf
  20 + .join('\n')
  21 + .replace(/^ *#/gm, '')
  22 +
  23 + return buf;
20 24 };
21 25
22 26 function context(comment) {

0 comments on commit 6a51108

Please sign in to comment.
Something went wrong with that request. Please try again.