form_field_validator icon indicating copy to clipboard operation
form_field_validator copied to clipboard

Length Validators now consider emojis as one character.

Open pavittarsingh315 opened this issue 2 years ago • 0 comments

The length validators didn't consider the length of a string which has emojis. They'd count an emoji as two characters which is incorrect from the user's perspective. I changed all the length validators to get the length property from value.runes instead which considers an emoji as one character.

pavittarsingh315 avatar Jun 27 '22 21:06 pavittarsingh315