mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-25 14:39:30 +00:00
make linter happy
This commit is contained in:
parent
5e0cdf661f
commit
31c48f5b87
@ -53,9 +53,6 @@ class TemplateGenerator {
|
||||
}
|
||||
|
||||
getExternalProject(uri) {
|
||||
const constants = require('../constants');
|
||||
const RAW_URL = 'https://github.com/';
|
||||
|
||||
let match = uri.match(
|
||||
/\.[a-z]+\/([-a-zA-Z0-9@:%_+.~#?&\/=]+)/
|
||||
);
|
||||
@ -63,17 +60,17 @@ class TemplateGenerator {
|
||||
let url, folder;
|
||||
|
||||
if (uri.startsWith('http')) {
|
||||
url = uri + "/archive/master.zip"
|
||||
folder = match[1]
|
||||
url = uri + "/archive/master.zip";
|
||||
folder = match[1];
|
||||
} else if (uri.startsWith('github')) {
|
||||
url = "https://" + uri + "/archive/master.zip"
|
||||
folder = match[1]
|
||||
url = "https://" + uri + "/archive/master.zip";
|
||||
folder = match[1];
|
||||
} else if (uri.split('/').length === 2) {
|
||||
url = "https://github.com/" + uri + "/archive/master.zip"
|
||||
folder = uri
|
||||
url = "https://github.com/" + uri + "/archive/master.zip";
|
||||
folder = uri;
|
||||
} else if (uri.indexOf('/') === -1) {
|
||||
url = "https://github.com/embark-framework/embark-" + uri + "-template/archive/master.zip"
|
||||
folder = "embark-framework/embark-" + uri + "-template"
|
||||
url = "https://github.com/embark-framework/embark-" + uri + "-template/archive/master.zip";
|
||||
folder = "embark-framework/embark-" + uri + "-template";
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user