Contacts icon indicating copy to clipboard operation
Contacts copied to clipboard

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

Open DiagonalArg opened this issue 1 year ago • 3 comments

Checklist

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

DiagonalArg avatar Nov 30 '24 16:11 DiagonalArg

Please fill out the template properly.

Aga-C avatar Nov 30 '24 16:11 Aga-C

Well I did it, but for a 2-line bug report, this kind of rigidity seems to me unnecessary.

DiagonalArg avatar Dec 01 '24 11:12 DiagonalArg

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

It applies only to VCF files.

Aga-C avatar Dec 01 '24 11:12 Aga-C