Commit 5369677f authored by Steffen Matthischke's avatar Steffen Matthischke

Improved sanitizing of configuration names which have a number prefix.

parent 7ada0b22
...@@ -61,6 +61,9 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -61,6 +61,9 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Eloy Durán](https://github.com/alloy) [Eloy Durán](https://github.com/alloy)
[#2723](https://github.com/CocoaPods/CocoaPods/issues/2723) [#2723](https://github.com/CocoaPods/CocoaPods/issues/2723)
* Improved sanitizing of configuration names which have a number prefix.
[Steffen Matthischke](https://github.com/HeEAaD)
[#2700](https://github.com/CocoaPods/CocoaPods/pull/2700)
## 0.34.4 ## 0.34.4
......
...@@ -209,7 +209,7 @@ module Pod ...@@ -209,7 +209,7 @@ module Pod
# #
def add_build_configuration(name, type) def add_build_configuration(name, type)
build_configuration = super build_configuration = super
values = ["#{name.gsub(/[^a-zA-Z0-9_]/, '_').gsub(/(^[0-9])/, '_\1').upcase}=1"] values = ["#{name.gsub(/[^a-zA-Z0-9_]/, '_').sub(/(^[0-9])/, '_\1').upcase}=1"]
settings = build_configuration.build_settings settings = build_configuration.build_settings
definitions = Array(settings['GCC_PREPROCESSOR_DEFINITIONS']) definitions = Array(settings['GCC_PREPROCESSOR_DEFINITIONS'])
values.each do |value| values.each do |value|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment