Closed ekarious closed 1 month ago
I know another issue was filed and fixed for this in 2022. But I still have the bug in my vault.
Hey @ekarious , thanks for reporting this. This seems like the regex for finding valid words is likely hitting an issue where it is matching all digits. I do need to verify this though.
Ok. I took a look and it looks like the issue is because it is not properly filtering out some single letter situations. It looks like if -
or '
are by themselves with whitespace around them in the header before any letter, it gets considered to be the first "letter". This should not be too hard to fix (fingers crossed).
Thanks for bring this to our attention.
I believe I have a fixed that is now merged into master and should go out with the next release. Please let us know if there is an issue with either.
Thank you a lot ! :)
Describe the Bug
When having a title like this
It gets formatted as
If the letter is in the lowercase words, It will be lowercased even if first letter in the header.
How to Reproduce
Steps to reproduce the behavior:
a
inside for this example.Resources
data.json logs.txt
Expected Behavior
As the linter run, the header
should have been
Device
Additional Context
As additional context, take note that I am currently using a regex to modify the header to change
_
->-
as:^# (\d+)_ (.+)\n
gm
# $1 - $2\n
As I am not an expert in regexes, maybe this can contribute to the bug.