context-labs / autodoc

Experimental toolkit for auto-generating codebase documentation using LLMs
MIT License
1.93k stars 113 forks source link

Use `path.dirname` instead of wrong `string.lastIndexOf` #30

Closed jmederosalvarado closed 1 year ago

jmederosalvarado commented 1 year ago

Passing \\ to lastIndexOf ultimately passed an empty string to shouldReindex which caused shouldReindex to always return true.

Note: \\ is the path delimiter on windows, maybe this worked on windows before, but it's not crossplatform.