0
I have the following variable in the Angular JS $Scope, with an Arrow Function:
$scope.cad.nome.toLowerCase().replace(/\b\w/g, l => l.toUpperCase());
Which I need to format your content, which is someone’s full name. It’s working until the name has some accent or "Ç". It makes the first letters of each name uppercase, but when it finds an accent, it makes the next letter uppercase as well. example:
Marília Mendonça
How to change the regex so it doesn’t happen?
Thank you!!!!!!!!
– Robson H Rodrigues