Skip to content

Commit

Permalink
Fixes #13 to support proper JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed Dec 5, 2017
1 parent 0e7eab9 commit 69a36bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export class Parser {
}

// Combine custom delimiters and the rest of the comment block matcher
let commentMatchString: string = "(^)+([ \\t]*)?(";
let commentMatchString: string = "(^)+([ \\t]*\\*[ \\t]*)(";
commentMatchString += characters.join("|");
commentMatchString += ")+( )*?([a-z])+([^*/\\r\\n]*)";
commentMatchString += ")+([ ]*[a-z]|[:])+([^*/\\r\\n]*)";

// Find rows of comments matching pattern
let regEx = /(^|[ \t])(\/\*)+([\s\S]*?)(\*\/)/gm;
Expand Down

0 comments on commit 69a36bf

Please sign in to comment.