kopia lustrzana https://github.com/c9/core
tweak plugin installer
rodzic
b59d55d0e8
commit
ab69dc8d23
|
@ -90,7 +90,7 @@
|
|||
"c9.ide.help.support": "#af5c4055b2",
|
||||
"c9.ide.imgeditor": "#612e75ef4f",
|
||||
"c9.ide.immediate": "#19758abe08",
|
||||
"c9.ide.installer": "#0fde9f0067",
|
||||
"c9.ide.installer": "#cad8f8316d",
|
||||
"c9.ide.language.python": "#330b80e3b2",
|
||||
"c9.ide.language.go": "#6ce1c7a7ef",
|
||||
"c9.ide.mount": "#4c39359b87",
|
||||
|
|
|
@ -653,6 +653,10 @@ define(function(require, exports, module) {
|
|||
p = "/" + normalizePath(Path.relative(cwd, p));
|
||||
excludeMap[p] = 1;
|
||||
});
|
||||
// keep installer in both packed and unpacked form
|
||||
if (json.installer)
|
||||
excludeMap["/" + normalizePath(Path.relative(cwd, json.installer))] = 0;
|
||||
|
||||
copy(cwd, cwd + "/.c9/.build", {
|
||||
exclude: function(name, parent) {
|
||||
if (excludeRe.test(name))
|
||||
|
|
|
@ -577,7 +577,7 @@ define(function(require, exports, module) {
|
|||
|
||||
function setAPIKey(apikey){
|
||||
// Validate Key
|
||||
if (!apikey || !apikey.match(/[\w+]{27}=/))
|
||||
if (!apikey || !apikey.match(/^.{27}=$/))
|
||||
throw new Error("Invalid API key");
|
||||
|
||||
return {
|
||||
|
|
Ładowanie…
Reference in New Issue