updated key validation

pull/9/merge
Ruben Daniels 2015-02-12 03:32:01 +00:00
rodzic 4f12650ecf
commit a1496268a3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -562,7 +562,7 @@ define(function(require, exports, module) {
function setAPIKey(apikey){
// Validate Key
if (!apikey || !apikey.match(/\w{27}=/))
if (!apikey || !apikey.match(/[\w+]{27}=/))
throw new Error("Invalid API key");
return {