diff --git a/js/csrfprotector.js b/js/csrfprotector.js index ac58c55..5d1920c 100644 --- a/js/csrfprotector.js +++ b/js/csrfprotector.js @@ -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;