FIX: Allow CodeCommit-style theme .git url format (#12739)

This commit is contained in:
Penar Musaraj
2021-04-16 12:46:34 -04:00
committed by GitHub
parent c60ccfed98
commit 9581d71372
5 changed files with 27 additions and 9 deletions

View File

@ -24,7 +24,7 @@ export default Controller.extend(ModalFunctionality, {
keyGenUrl: "/admin/themes/generate_key_pair",
importUrl: "/admin/themes/import",
recordType: "theme",
checkPrivate: match("uploadUrl", /^.*[@].*[:].*\.git$/),
checkPrivate: match("uploadUrl", /^ssh\:\/\/.*\@.*\.git$|.*\@.*\:.*\.git$/),
localFile: null,
uploadUrl: null,
uploadName: null,