mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
tiny fix for config file containing spaces in name
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class Create < Classic
|
||||
@config[:version] = doc.root.attributes["version"]
|
||||
|
||||
doc.root.elements.each do |n|
|
||||
@config[:name] = n.text if n.name == 'name'
|
||||
@config[:name] = n.text.gsub('-','').gsub(' ','') if n.name == 'name'
|
||||
@config[:description] = n.text if n.name == 'description'
|
||||
@config[:icon] = n.attributes["src"] if n.name == 'icon'
|
||||
@config[:content] = n.attributes["src"] if n.name == 'content'
|
||||
|
||||
Reference in New Issue
Block a user