Permalink
Browse files

[scripts] Be a bit more lenient in ttmodule with one of the regexes.

  • Loading branch information...
jverkoey committed Apr 17, 2011
1 parent 2fa7227 commit b517c193589bff857438b66ed3735662b2caddb9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/scripts/Pbxproj.py
View
@@ -468,9 +468,9 @@ def add_header_search_path(self, configuration):
def add_build_setting(self, configuration, setting_name, value):
project_data = self.get_project_data()
- match = re.search('\/\* '+configuration+' \*\/ = {\n[ \t]+isa = XCBuildConfiguration;\n[ \t]+buildSettings = \{\n((?:.|\n)+?)\};', project_data)
+ match = re.search('\/\* '+configuration+' \*\/ = {\n[ \t]+isa = XCBuildConfiguration;\n(?:.|\n)+?[ \t]+buildSettings = \{\n((?:.|\n)+?)\};', project_data)
if not match:
- print "Couldn't find this configuration."
+ print "Couldn't find the "+configuration+" configuration in "+self.path()
return False
settings_start = match.start(1)

0 comments on commit b517c19

Please sign in to comment.