Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Fix a bug that include_filename doesn't work properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
devxoul committed May 13, 2015
1 parent efe4e6e commit 099b480
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/cocoaseeds/xcodehelper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,11 @@ def add_file_reference_with_uuid(file_ref, uuid, avoid_duplicates = false)
end

def include_filename?(pattern)
filenames = self.file_display_names
if filenames.length == 0 and pattern
return false
self.file_display_names.each do |filename|
return true if filename.match pattern
end
filenames.each do |filename|
if not filename.match pattern
return false
end
end
return true
false
end
end

end
end

0 comments on commit 099b480

Please sign in to comment.