@es-joy/jsdoccomment
Advanced tools
Comparing version 0.43.0 to 0.43.1
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.43.1 | ||
- fix: for `@template` name parsing, ensure (default-)bracketed name is not broken with internal spaces. | ||
## 0.43.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.43.0", | ||
"version": "0.43.1", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -45,5 +45,5 @@ "contributors": [], | ||
"dependencies": { | ||
"@typescript-eslint/types": "^7.2.0", | ||
"@types/eslint": "^8.56.5", | ||
"@types/estree": "^1.0.5", | ||
"@typescript-eslint/types": "^7.2.0", | ||
"comment-parser": "1.4.1", | ||
@@ -61,3 +61,3 @@ "esquery": "^1.5.0", | ||
"@types/estraverse": "^5.1.7", | ||
"@typhonjs-build-test/esm-d-ts": "^0.3.0-next.1", | ||
"@typhonjs-build-test/esm-d-ts": "0.3.0-next.1", | ||
"@typhonjs-typedoc/typedoc-pkg": "^0.0.4", | ||
@@ -64,0 +64,0 @@ "@vitest/coverage-v8": "^1.3.0", |
@@ -207,2 +207,5 @@ # @es-joy/jsdoccomment | ||
You can get a sense of the structure of these types using the parser's | ||
[tester](https://jsdoc-type-pratt-parser.github.io/jsdoc-type-pratt-parser/). | ||
## Installation | ||
@@ -209,0 +212,0 @@ |
@@ -93,3 +93,12 @@ /* eslint-disable prefer-named-capture-group -- Temporary */ | ||
const pos = remainder.search(/(?<![\s,])\s/u); | ||
let pos; | ||
if (remainder.startsWith('[') && remainder.includes(']')) { | ||
const endingBracketPos = remainder.indexOf(']'); | ||
pos = remainder.slice(endingBracketPos).search(/(?<![\s,])\s/u); | ||
if (pos > -1) { // Add offset to starting point if space found | ||
pos += endingBracketPos; | ||
} | ||
} else { | ||
pos = remainder.search(/(?<![\s,])\s/u); | ||
} | ||
@@ -96,0 +105,0 @@ let name = pos === -1 ? remainder : remainder.slice(0, pos); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113116
2751
242