Skip to content

Commit

Permalink
Fix regex reference
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdeely authored and nithincvpoyyil committed Jan 13, 2022
1 parent 09842e6 commit 55b96d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class MixpanelTool {

getProperties(dataParam) {
let dataStr = decodeURIComponent(dataParam);
if(base64regex.test(dataStr)) {
if(this.base64regex.test(dataStr)) {
dataStr = atob(dataStr);
}
return JSON.parse(dataStr);
Expand Down

0 comments on commit 55b96d5

Please sign in to comment.