Closed guilhermednt closed 3 years ago
Currently strlen is being used to check string lengths, however this is not adequate as it actually counts bytes, not characters.
strlen
This PR fixes that by using grapheme_strlen to accurately count characters as perceived by humans.
grapheme_strlen
I propose considering this a breaking change as it can significantly change how validations work.
merging, however I'm wondering if we shouldn't add ext-intl in generated api clients
That's actually a very good point @vsouz4, I totally forgot about that.
Currently
strlen
is being used to check string lengths, however this is not adequate as it actually counts bytes, not characters.This PR fixes that by using
grapheme_strlen
to accurately count characters as perceived by humans.I propose considering this a breaking change as it can significantly change how validations work.