Skip to content

Commit be008f2

Browse files
Georgi Alexandrove2l3n
Georgi Alexandrov
authored andcommitted
Change framework extension regex to verify, that the path ends with .framework
1 parent f5aeaa6 commit be008f2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/pbxFile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var path = require('path'),
55
BUNDLE_EXTENSION = /[.]bundle$/, BUNDLE = '"wrapper.plug-in"',
66
XIB_EXTENSION = /[.]xib$/, XIB_FILE = 'file.xib',
77
DYLIB_EXTENSION = /[.]dylib$/, DYLIB = '"compiled.mach-o.dylib"',
8-
FRAMEWORK_EXTENSION = /[.]framework/, FRAMEWORK = 'wrapper.framework',
8+
FRAMEWORK_EXTENSION = /[.]framework$/, FRAMEWORK = 'wrapper.framework',
99
ARCHIVE_EXTENSION = /[.]a$/, ARCHIVE = 'archive.ar',
1010
PNG_EXTENSION = /[.]png/, PNG_IMAGE = "image.png",
1111
DEFAULT_SOURCE_TREE = '"<group>"',

test/pbxFile.js

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ exports['lastType'] = {
4343
test.done();
4444
},
4545

46+
'should detect that a .framework/.a path means archive.ar': function (test) {
47+
var sourceFile = new pbxFile('MessageUI.framework/libGoogleAnalytics.a');
48+
49+
test.equal('archive.ar', sourceFile.lastType);
50+
test.done();
51+
},
52+
4653
'should detect that a .a path means archive.ar': function (test) {
4754
var sourceFile = new pbxFile('libGoogleAnalytics.a');
4855

0 commit comments

Comments
 (0)