Skip to content

Commit eeab3d2

Browse files
committed
fix: ensure comment is only matched by /**\s at beginning of text
1 parent 3d61126 commit eeab3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iterateJsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ const iterateAllJsdocs = (iterator, ruleConfig) => {
431431
const comments = sourceCode.getAllComments();
432432

433433
comments.forEach((comment) => {
434-
if (!(/\/\*\*\s/).test(sourceCode.getText(comment))) {
434+
if (!(/^\/\*\*\s/).test(sourceCode.getText(comment))) {
435435
return;
436436
}
437437

0 commit comments

Comments
 (0)