Skip to content

Commit

Permalink
updated to remove esc only if it is before colon
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Nov 20, 2023
1 parent ebfbc79 commit 7de5d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7de5d9f

Please sign in to comment.