mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Added comments
This commit is contained in:
parent
198754222d
commit
8c3263a6ea
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ exports.isValidPadId = function(padId)
|
|||
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the pad from database and unloads it.
|
||||
*/
|
||||
exports.removePad = function(padId){
|
||||
db.remove("pad:"+padId);
|
||||
exports.unloadPad(padId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue