File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -4454,6 +4454,19 @@ function quux () {
4454
4454
4455
4455
}
4456
4456
// Options: [" always" ]
4457
+
4458
+ /**
4459
+ * Parses query string to object containing URL parameters
4460
+ *
4461
+ * @param queryString
4462
+ * Input string
4463
+ *
4464
+ * @returns
4465
+ * Object containing URL parameters
4466
+ */
4467
+ export function parseQueryString(queryString: string): { [key: string]: string } { // <-- Line 10 that fails
4468
+
4469
+ }
4457
4470
````
4458
4471
4459
4472
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default iterateJsdoc(({
21
21
always = true ;
22
22
}
23
23
24
- const descriptionEndsWithANewline = jsdoc . description . endsWith ( '\n' ) ;
24
+ const descriptionEndsWithANewline = ( / \n \r ? $ / ) . test ( jsdoc . description ) ;
25
25
26
26
if ( always ) {
27
27
if ( ! descriptionEndsWithANewline ) {
Original file line number Diff line number Diff line change @@ -299,5 +299,26 @@ export default {
299
299
'always' ,
300
300
] ,
301
301
} ,
302
+ {
303
+ // https://github.com/gajus/eslint-plugin-jsdoc/issues/437
304
+ code : `
305
+ /**\r
306
+ * Parses query string to object containing URL parameters\r
307
+ * \r
308
+ * @param queryString\r
309
+ * Input string\r
310
+ * \r
311
+ * @returns\r
312
+ * Object containing URL parameters\r
313
+ */\r
314
+ export function parseQueryString(queryString: string): { [key: string]: string } { // <-- Line 10 that fails\r
315
+ \r
316
+ }\r
317
+ ` ,
318
+ parser : require . resolve ( '@typescript-eslint/parser' ) ,
319
+ parserOptions : {
320
+ sourceType : 'module' ,
321
+ } ,
322
+ } ,
302
323
] ,
303
324
} ;
You can’t perform that action at this time.
0 commit comments