Skip to content

Commit af32667

Browse files
committed
perf(match-description): simplify and optimize default regex
1 parent 05c24d1 commit af32667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/matchDescription.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default iterateJsdoc(({
1818

1919
// If supporting Node >= 10, we could loosen to this for the
2020
// initial letter: \\p{Upper}
21-
) || '^([A-Z]|[`\\d_])([\\s\\S]*[.?!`])?$',
21+
) || '^[A-Z`\\d_](?:[\\s\\S]*[.?!`])?$',
2222
'u'
2323
);
2424

0 commit comments

Comments
 (0)