From 3c99e0703024a844c7e2f6b52e8d5146757c52f0 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 13 Aug 2011 17:48:36 +0100 Subject: [PATCH] fixed regular expression PadID check --- node/db/PadManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/db/PadManager.js b/node/db/PadManager.js index 00128267b..01ec5143f 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); }