Skip to content

Commit 39d26b1

Browse files
authored
Merge pull request #12 from NativeScript/scoped-packages
fix: add quotes for scoped packages containing "@"
2 parents ec70f5d + 34211e9 commit 39d26b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceT
550550
var groups = this.hash.project.objects['PBXGroup'],
551551
pbxGroupUuid = opt.uuid || this.generateUuid(),
552552
commentKey = f("%s_comment", pbxGroupUuid),
553-
groupName = name.indexOf(" ") >= 0 && name[0] !== `"` ? `"${name}"` : name,
553+
groupName = (name.indexOf(" ") >= 0 || name.indexOf("@") >= 0) && name[0] !== `"` ? `"${name}"` : name,
554554
pbxGroup = {
555555
isa: 'PBXGroup',
556556
children: [],

0 commit comments

Comments
 (0)