Skip to content

(failure to?) sanitise fully capitalised suggestions #53

@kepler471

Description

@kepler471

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions