mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
fix(android): text transform capitalize is capitalizing after apostrophe (#10029)
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
This commit is contained in:

committed by
GitHub

parent
a85cc6d33e
commit
e3255c00d8
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user