Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added comments

  • Loading branch information...
commit 8c3263a6ea6105ad1f2c6e2c5b09a5f88c120fb1 1 parent 1987542
@spcsser authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/node/db/PadManager.js
View
3  src/node/db/PadManager.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.