generalize boost title cleaning

This commit is contained in:
feruz 2020-01-10 11:30:25 +02:00
parent 318ba41045
commit 405ccc93fb

View File

@ -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;
};