summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-08-13 17:48:36 +0100
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-08-13 17:48:36 +0100
commit3c99e0703024a844c7e2f6b52e8d5146757c52f0 (patch)
tree92d7e0315a9a06e3f16b348f3205750189682420 /node
parent0e05e58c768b62e7f050562d8f17234c35dbd791 (diff)
downloadetherpad-lite-3c99e0703024a844c7e2f6b52e8d5146757c52f0.zip
fixed regular expression PadID check
Diffstat (limited to 'node')
-rw-r--r--node/db/PadManager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/db/PadManager.js b/node/db/PadManager.js
index 00128267..01ec5143 100644
--- a/node/db/PadManager.js
+++ b/node/db/PadManager.js
@@ -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);
}