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

(failure to?) sanitise fully capitalised suggestions #53

Open
kepler471 opened this issue Dec 27, 2021 · 0 comments
Open

(failure to?) sanitise fully capitalised suggestions #53

kepler471 opened this issue Dec 27, 2021 · 0 comments

Comments

@kepler471
Copy link

I often see a suggested filename where the text is ALL CAPS. When this occurs, would it be better to convert to Title Case?

The line & titlecase seems to already be trying to do this, so is the behaviour a bug? Sorry if I have misunderstood the code, I don't read Haskell well.

Actually looking into Data.Text.Titlecase function, I don't think it would change an ALL CAPS string, so a fix may be to Data.Text.toLower the text before titlecase.

I would be happy to provide test cases where this happens, if you like.

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

No branches or pull requests

1 participant