Skip to content

Commit 4d57215

Browse files
committed
0.12.5 (fixed)
1 parent 6b79398 commit 4d57215

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

satellizer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279

280280
if (token && token.split('.').length === 3) {
281281
var base64Url = token.split('.')[1];
282-
var base64 = base64Url.replace('-', '+').replace('_', '/');
282+
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
283283
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
284284
}
285285
};
@@ -322,7 +322,7 @@
322322
if (token) {
323323
if (token.split('.').length === 3) {
324324
var base64Url = token.split('.')[1];
325-
var base64 = base64Url.replace('-', '+').replace('_', '/');
325+
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
326326
var exp = JSON.parse($window.atob(base64)).exp;
327327

328328
if (exp) {

0 commit comments

Comments
 (0)