File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,12 @@ function quux () {}
178
178
*/
179
179
// "jsdoc/match-name": ["error"|"warn", {"match":[{"disallowName":"/^opt_/i","replacement":""}]}]
180
180
// Message: Only allowing names not matching `/^opt_/i` but found "opt_a".
181
+
182
+ /**
183
+ * @template
184
+ */
185
+ // "jsdoc/match-name": ["error"|"warn", {"match":[{"disallowName":"/^$/","tags":["template"]}]}]
186
+ // Message: Only allowing names not matching `/^$/u` but found "".
181
187
````
182
188
183
189
Original file line number Diff line number Diff line change @@ -357,6 +357,31 @@ export default {
357
357
*/
358
358
` ,
359
359
} ,
360
+ {
361
+ code : `
362
+ /**
363
+ * @template
364
+ */
365
+ ` ,
366
+ errors : [
367
+ {
368
+ line : 3 ,
369
+ message : 'Only allowing names not matching `/^$/u` but found "".' ,
370
+ } ,
371
+ ] ,
372
+ options : [
373
+ {
374
+ match : [
375
+ {
376
+ disallowName : '/^$/' ,
377
+ tags : [
378
+ 'template' ,
379
+ ] ,
380
+ } ,
381
+ ] ,
382
+ } ,
383
+ ] ,
384
+ } ,
360
385
] ,
361
386
valid : [
362
387
{
You can’t perform that action at this time.
0 commit comments