Skip to content

Change String length checks to .chars().len() instead of .len() because of UTF-8 characters #760

@zupzup

Description

@zupzup

Currently, we check name (and likely other fields) length just with byte length (.len()), but to be e.g. able to properly validate arabic and other languages, we have to change it to .chars().len()

Also for city, city of birth, zip, identification etc. etc. where it makes sense

Also, it should be .trim()-ed for length

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions