From 7de5d9f5252dd1bb34cea3f3323b5549071dd5d0 Mon Sep 17 00:00:00 2001 From: Fitsum Abebe Date: Mon, 20 Nov 2023 18:08:46 +0300 Subject: [PATCH] updated to remove esc only if it is before colon --- src/libs/OptionsListUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 17a21e003afb..79eb88154b37 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -897,7 +897,7 @@ function getCategoryListSections(categories, recentlyUsedCategories, selectedOpt function getTagsOptions(tags) { return _.map(tags, (tag) => { // This is to remove unnecessary escaping backslash in tag name sent from backend. - const tagName = tag.name && tag.name.replace(/(\\)+/g, ''); + const tagName = tag.name && tag.name.replace(/\\{1,2}:/g, ':'); return { text: tagName,