Fix replacing ${project-base-name} in gr-repo
Bug: Issue 10415 Change-Id: I004b66ca39b56b801637a0a0ade6192387ed91d1
This commit is contained in:
@@ -307,8 +307,8 @@
|
|||||||
commands.push({
|
commands.push({
|
||||||
title,
|
title,
|
||||||
command: commandObj[title]
|
command: commandObj[title]
|
||||||
.replace('${project}', encodeURI(repo))
|
.replace(/\$\{project\}/gi, encodeURI(repo))
|
||||||
.replace('${project-base-name}',
|
.replace(/\$\{project-base-name\}/gi,
|
||||||
encodeURI(repo.substring(repo.lastIndexOf('/') + 1))),
|
encodeURI(repo.substring(repo.lastIndexOf('/') + 1))),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user