eslint-plugin-jsdoc 54.1.1 → 54.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,7 +169,7 @@ export default iterateJsdoc(({
169
169
  },
170
170
  ] of tg.source.entries()) {
171
171
  if (description) {
172
- lines.splice(0, lines.length);
172
+ lines.splice(0);
173
173
  tagSourceIdx = idx;
174
174
  }
175
175
 
@@ -358,8 +358,15 @@ export default iterateJsdoc(({
358
358
 
359
359
  if (hasNameOrNamepathPosition) {
360
360
  if (mode !== 'jsdoc' && tag.tag === 'template') {
361
- for (const namepath of utils.parseClosureTemplateTag(tag)) {
362
- validNamepathParsing(namepath);
361
+ if (!tryParsePathIgnoreError(
362
+ // May be an issue with the commas of
363
+ // `utils.parseClosureTemplateTag`, so first try a raw
364
+ // value; we really need a proper parser instead, however.
365
+ tag.name.trim().replace(/^\[?(?<name>.*?)=.*$/v, '$<name>'),
366
+ )) {
367
+ for (const namepath of utils.parseClosureTemplateTag(tag)) {
368
+ validNamepathParsing(namepath);
369
+ }
363
370
  }
364
371
  } else {
365
372
  validNamepathParsing(tag.name, tag.tag);