Skip to content

Commit

Permalink
fix: ensure comment is only matched by /**\s at beginning of text
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Nov 20, 2019
1 parent 3d61126 commit eeab3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iterateJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ const iterateAllJsdocs = (iterator, ruleConfig) => {
const comments = sourceCode.getAllComments();

comments.forEach((comment) => {
if (!(/\/\*\*\s/).test(sourceCode.getText(comment))) {
if (!(/^\/\*\*\s/).test(sourceCode.getText(comment))) {
return;
}

Expand Down

0 comments on commit eeab3d2

Please sign in to comment.