Fix replacing ${project-base-name} in gr-repo

Bug: Issue 10415
Change-Id: I004b66ca39b56b801637a0a0ade6192387ed91d1
This commit is contained in:
Paladox none 2019-01-31 19:04:49 +00:00
parent 1d531da9d8
commit f73f67d252
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@
commands.push({
title,
command: commandObj[title]
.replace('${project}', encodeURI(repo))
.replace('${project-base-name}',
.replace(/\$\{project\}/gi, encodeURI(repo))
.replace(/\$\{project-base-name\}/gi,
encodeURI(repo.substring(repo.lastIndexOf('/') + 1))),
});
}