Description extension not working if dot in username
sekistner opened this issue · comments
Severin M. A. Kistner commented
jsonschema2md/lib/formatInfo.js
Line 67 in 2a0f6f8
If your user has a dot in it like j.doe
then it will cut it off at j
and looks for the path with j.description.md
at the end and fails with Error: ENOENT: no such file or directory, open '/Users/j.description.md'
.
This way the descriptions extension are not imported.
Lars Trieloff commented
You might want to try this with this tweaked regex:
schema[s.filename].replace(/\.[^.]*$/, '.description.md'),
If it works for you, feel free to open a PR