Skip to content

Commit

Permalink
Fix missing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
BelleNottelling committed Aug 7, 2021
1 parent 3080974 commit a5e35b8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -44,7 +44,7 @@ var CSRFP = {
* @return {String} auth key from cookie.
*/
_getAuthKey: function () {
var regex = new RegExp(`(?:^|;\s*)${CSRFP.CSRFP_TOKEN}=([^;]+)(;|$)`);
var regex = new RegExp((?:^|;\\s*)${CSRFP.CSRFP_TOKEN}=([^;]+)(;|$));
var regexResult = regex.exec(document.cookie);
if (regexResult === null) {
return null;
Expand Down

0 comments on commit a5e35b8

Please sign in to comment.