Added comments
parent
198754222d
commit
8c3263a6ea
|
@ -210,6 +210,9 @@ exports.isValidPadId = function(padId)
|
||||||
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
|
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the pad from database and unloads it.
|
||||||
|
*/
|
||||||
exports.removePad = function(padId){
|
exports.removePad = function(padId){
|
||||||
db.remove("pad:"+padId);
|
db.remove("pad:"+padId);
|
||||||
exports.unloadPad(padId);
|
exports.unloadPad(padId);
|
||||||
|
|
Loading…
Reference in New Issue