Skip to content

Commit 34211e9

Browse files
author
vakrilov
committed
fix: add quotes for scoped packages containing "@"
1 parent ec70f5d commit 34211e9

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)