mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04: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)
|
||||
{
|
||||
return /^([0-9]+\$)?[^$]{1,50}$/.test(padId);
|
||||
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue