mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 11:34:30 +03:00
generalize boost title cleaning
This commit is contained in:
parent
318ba41045
commit
405ccc93fb
@ -20,9 +20,7 @@ const ITEM_SKUS = Platform.select({
|
||||
const _getTitle = title => {
|
||||
let _title = title.toUpperCase();
|
||||
|
||||
if (_title.includes('(ESTEEM)')) {
|
||||
_title = _title.replace('(ESTEEM)', '');
|
||||
}
|
||||
_title = _title.replace(/[^0-9]+/g, '') + ' ESTM';
|
||||
|
||||
return _title;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user