Skip to content

Commit

Permalink
OneTrust_CookieConesnt_Changes: reverted to trim() for category matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed Dec 24, 2021
1 parent 171fc79 commit e9eaec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookieConsent/OneTrust/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OneTrust {
const { CustomGroupId, GroupName } = group;
if (userSetConsentGroupIds.includes(CustomGroupId)) {
this.userSetConsentGroupNames.push(
GroupName.toUpperCase().replace(/\s+/g, "")
GroupName.toUpperCase().trim()
);
}
});
Expand Down Expand Up @@ -87,7 +87,7 @@ class OneTrust {
// Check if all the destination's mapped cookie categories are consented by the user in the browser.
containsAllConsent = oneTrustConsentGroupArr.every((element) =>
this.userSetConsentGroupNames.includes(
element.toUpperCase().replace(/\s+/g, "")
element.toUpperCase().trim()
)
);
}
Expand Down

0 comments on commit e9eaec3

Please sign in to comment.