diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-13 17:48:36 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-13 17:48:36 +0100 |
commit | 3c99e0703024a844c7e2f6b52e8d5146757c52f0 (patch) | |
tree | 92d7e0315a9a06e3f16b348f3205750189682420 /node | |
parent | 0e05e58c768b62e7f050562d8f17234c35dbd791 (diff) | |
download | etherpad-lite-3c99e0703024a844c7e2f6b52e8d5146757c52f0.zip |
fixed regular expression PadID check
Diffstat (limited to 'node')
-rw-r--r-- | node/db/PadManager.js | 2 |
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); } |