fix(android): text transform capitalize is capitalizing after apostrophe (#10029)

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
This commit is contained in:
Dimitris-Rafail Katsampas
2022-09-24 01:17:00 +03:00
committed by GitHub
parent a85cc6d33e
commit e3255c00d8

View File

@ -505,7 +505,7 @@ export class TextBase extends TextBaseCommon {
function getCapitalizedString(str: string): string {
let newString = str.toLowerCase();
newString = newString.replace(/(?:^|\s|[-"'([{])+\S/g, (c) => c.toUpperCase());
newString = newString.replace(/(?:^|\s'*|[-"([{])+\S/g, (c) => c.toUpperCase());
return newString;
}