File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import warnRemovedSettings from '../warnRemovedSettings';
5
5
const zeroBasedLineIndexAdjust = - 1 ;
6
6
const likelyNestedJSDocIndentSpace = 1 ;
7
7
const preTagSpaceLength = 1 ;
8
+
9
+ // If a space is present, we should ignore it
10
+ const firstLinePrefixLength = preTagSpaceLength ;
11
+
8
12
const hasCaptionRegex = / ^ \s * < c a p t i o n > ( .* ?) < \/ c a p t i o n > / u;
9
13
10
14
const escapeStringRegexp = ( str ) => {
@@ -116,9 +120,6 @@ export default iterateJsdoc(({
116
120
}
117
121
118
122
utils . forEachPreferredTag ( 'example' , ( tag , targetTagName ) => {
119
- // If a space is present, we should ignore it
120
- const firstLinePrefixLength = preTagSpaceLength ;
121
-
122
123
let source = tag . description ;
123
124
const match = source . match ( hasCaptionRegex ) ;
124
125
You can’t perform that action at this time.
0 commit comments