fixed regular expression PadID check

pull/85/merge
Peter 'Pita' Martischka 2011-08-13 17:48:36 +01:00
parent 0e05e58c76
commit 3c99e07030
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}