mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
fixed regular expression PadID check
This commit is contained in:
parent
0e05e58c76
commit
3c99e07030
1 changed files with 1 additions and 1 deletions
|
@ -104,6 +104,6 @@ exports.doesPadExists = function(padId, callback)
|
||||||
|
|
||||||
exports.isValidPadId = function(padId)
|
exports.isValidPadId = function(padId)
|
||||||
{
|
{
|
||||||
return /^([0-9]+\$)?[^$]{1,50}$/.test(padId);
|
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue