From 405ccc93fb98c8aa4b36e8bcec87b3d4338de99e Mon Sep 17 00:00:00 2001 From: feruz Date: Fri, 10 Jan 2020 11:30:25 +0200 Subject: [PATCH] generalize boost title cleaning --- src/screens/boost/screen/boostScreen.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/screens/boost/screen/boostScreen.js b/src/screens/boost/screen/boostScreen.js index a24047c14..0b777a728 100644 --- a/src/screens/boost/screen/boostScreen.js +++ b/src/screens/boost/screen/boostScreen.js @@ -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; };