Skip to content

When First Name starts with White Space, the card is Filed at the End, after Z #195

@DiagonalArg

Description

@DiagonalArg

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

v.1.1.0

Affected Android/Custom ROM version

GrapheneOS

Affected device model

Pixel 7

How did you install the app?

GitHub releases

Steps to reproduce the bug

Create a contact with a single space before the first name.

Expected behavior

Sock Android Contacts ignored the white space, which is probably the right solution.

Actual behavior

I just noticed that a contact with a (mistaken) single space before the first name was imported, it was sorted all the way at the end, after "Z".

(Tangentially, is there a vCard linter available anywhere? Answers may be offered here.)

Screenshots/Screen recordings

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedFeature or bug accepted. PR is welcome.bugSomething is not workingnicheOnly relevant to a very small amount of people

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions