Skip to content

Commit

Permalink
Improve detection of package names
Browse files Browse the repository at this point in the history
Co-Authored-By: @bodil
  • Loading branch information
Gerrit0 committed Jul 31, 2022
1 parent e36ea1c commit a243817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
### Bug Fixes

- Fixed schema URL for TSDoc preventing the use of `typedoc/tsdoc.json` in TSDoc extends, #2015.
- Improved detection of package names in repositories using pnpm, #2017.
- Fixed missing JSDoc style `@typedef` comments for properties, #2020.

### Thanks!

- @bodil
- @nazarhussain

## v0.23.9 (2022-07-24)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ export class ReferenceType extends Type {
.fileName.replace(/\\/g, "/");
if (!symbolPath) return ref;

let startIndex = symbolPath.indexOf("node_modules/");
let startIndex = symbolPath.lastIndexOf("node_modules/");
if (startIndex === -1) return ref;
startIndex += "node_modules/".length;
let stopIndex = symbolPath.indexOf("/", startIndex);
Expand Down

0 comments on commit a243817

Please sign in to comment.