diff --git a/public/res/html/bodyIndex.html b/public/res/html/bodyIndex.html
index d808f18b..d78974f1 100644
--- a/public/res/html/bodyIndex.html
+++ b/public/res/html/bodyIndex.html
@@ -153,13 +153,13 @@
@@ -624,18 +624,10 @@
-
diff --git a/public/res/providers/githubProvider.js b/public/res/providers/githubProvider.js
index f732d0e0..bec0ce94 100644
--- a/public/res/providers/githubProvider.js
+++ b/public/res/providers/githubProvider.js
@@ -19,13 +19,17 @@ define([
githubProvider.newPublishAttributes = function(event) {
var publishAttributes = {};
- publishAttributes.repository = utils.getInputTextValue("#input-publish-github-reponame", event);
- publishAttributes.username = utils.getInputTextValue("#input-publish-github-username");
+ publishAttributes.repository = utils.getInputTextValue("#input-publish-github-repo", event);
publishAttributes.branch = utils.getInputTextValue("#input-publish-github-branch", event);
publishAttributes.path = utils.getInputTextValue("#input-publish-file-path", event);
if(event.isPropagationStopped()) {
return undefined;
}
+ var parsedRepository = publishAttributes.repository.match(/[\/:]?([^\/:]+)\/([^\/]+?)(?:\.git)?$/);
+ if(parsedRepository) {
+ publishAttributes.repository = parsedRepository[2];
+ publishAttributes.username = parsedRepository[1];
+ }
return publishAttributes;
};