forked from github/cordova-android
tiny fix for config file containing spaces in name
This commit is contained in:
parent
7108076260
commit
36949f4af1
File diff suppressed because it is too large
Load Diff
@ -46,7 +46,7 @@ class Create < Classic
|
|||||||
@config[:version] = doc.root.attributes["version"]
|
@config[:version] = doc.root.attributes["version"]
|
||||||
|
|
||||||
doc.root.elements.each do |n|
|
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[:description] = n.text if n.name == 'description'
|
||||||
@config[:icon] = n.attributes["src"] if n.name == 'icon'
|
@config[:icon] = n.attributes["src"] if n.name == 'icon'
|
||||||
@config[:content] = n.attributes["src"] if n.name == 'content'
|
@config[:content] = n.attributes["src"] if n.name == 'content'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user