Skip to content

Commit 330bfeb

Browse files
committed
Merge branch 'plamen5kov/fix_template_option_parameters'
2 parents d3101d9 + 0e2c9bf commit 330bfeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/services/project-templates-service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export class ProjectTemplatesService implements IProjectTemplatesService {
1818
let templateName = originalTemplateName.toLowerCase();
1919

2020
// support <reserved_name>@<version> syntax
21-
let data = templateName.split("@"),
21+
let data = originalTemplateName.split("@"),
2222
name = data[0],
2323
version = data[1];
2424

25-
if(constants.RESERVED_TEMPLATE_NAMES[name]) {
26-
realTemplatePath = this.prepareNativeScriptTemplate(constants.RESERVED_TEMPLATE_NAMES[name], version, projectDir).wait();
25+
if(constants.RESERVED_TEMPLATE_NAMES[name.toLowerCase()]) {
26+
realTemplatePath = this.prepareNativeScriptTemplate(constants.RESERVED_TEMPLATE_NAMES[name.toLowerCase()], version, projectDir).wait();
2727
} else {
2828
// Use the original template name, specified by user as it may be case-sensitive.
2929
realTemplatePath = this.prepareNativeScriptTemplate(name, version, projectDir).wait();

0 commit comments

Comments
 (0)