Skip to content

Commit

Permalink
update the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Jan 19, 2024
1 parent 8834d5c commit 84ed784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/PolicyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ function getTagList(policyTags: OnyxCollection<PolicyTags>, tagKey: string) {
return policyTags?.[policyTagKey]?.tags ?? {};
}

// This is to remove unnecessary escaping backslash in tag name sent from backend for "Parent: Child" type of tags.
/**
* Cleans up escaping of colons (used to create multi-level tags, e.g. "Parent: Child") in the tag name we receive from the backend
*/
function getCleanedTagName(tag: string) {
return tag?.replace(/\\{1,2}:/g, ':');
}
Expand Down

0 comments on commit 84ed784

Please sign in to comment.