Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description extension not working if dot in username #362

Open
sekistner opened this issue Oct 18, 2021 · 1 comment
Open

Description extension not working if dot in username #362

sekistner opened this issue Oct 18, 2021 · 1 comment
Labels

Comments

@sekistner
Copy link

schema[s.filename].replace(/\..*$/, '.description.md'),

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.

@trieloff trieloff added the bug label Oct 19, 2021
@trieloff
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants