mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Fix regexp
This commit is contained in:
parent
96cc1ad55a
commit
7790c5606b
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ var padcookie = (function()
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// look for (start of string OR semicolon) followed by whitespace followed by prefs=(something);
|
// 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]))
|
if ((!regexResult) || (!regexResult[1]))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue