Skip to content

Commit

Permalink
fix: revert security sonar hotspot
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <sanpj2292@github.com>
  • Loading branch information
Sai Sankeerth committed Feb 12, 2024
1 parent 17b1e09 commit 0309096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deviceModeInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ let _rudderTracking = (function () {
// utility function to get cookie value
function cookie_parse() {
let obj = {};
let pairs = document.cookie.split(';');
let pairs = document.cookie.split(/ *; */);
let pair;
if ('' == pairs[0]) return obj;
for (let i = 0; i < pairs.length; ++i) {
Expand Down

0 comments on commit 0309096

Please sign in to comment.