kopia lustrzana https://github.com/c9/core
updated key validation
rodzic
4f12650ecf
commit
a1496268a3
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue