tldr-pages / tldr-lint

A linting tool to validate tldr pages
https://www.npmjs.com/package/tldr-lint
MIT License
35 stars 20 forks source link

New linter error if there is a hyphen character (‐, code point U+2010) #304

Open vitorhcl opened 4 months ago

vitorhcl commented 4 months ago

This character is visually the same as hyphen minus (‐, code point U+002D), so it's very hard to catch for humans.

gutjuri commented 3 months ago

I am planning to implement such a check. Are you aware of any other hard-to-spot symbols that should be checked for? E.g. different types of space?

vitorhcl commented 3 months ago

I am planning to implement such a check. Are you aware of any other hard-to-spot symbols that should be checked for? E.g. different types of space?

I did some research on invisible character and there are many of them, not to tell other characters like those other quotes.

Maybe we could instead use an allowed set of characters for English pages?