Fix regexp

pull/3187/head
Mikk Andresen 2017-05-05 10:54:26 +03:00
parent 96cc1ad55a
commit 7790c5606b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ var padcookie = (function()
return null;
}
// look for (start of string OR semicolon) followed by whitespace followed by prefs=(something);
var regexResult = document.cookie.match(new RegExp("(?:^|;)\s*" + cookieName + "=([^;]*)(?:;|$)"));
var regexResult = document.cookie.match(new RegExp("(?:^|;)\\s*" + cookieName + "=([^;]*)(?:;|$)"));
if ((!regexResult) || (!regexResult[1]))
{
return null;