Commit 1241473fe84d38674e918bf74fdf233c34ab7639
1 parent
ea1d4f78
change condition elelement name to itemName
Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -43,7 +43,7 @@ module Kanjai | @@ -43,7 +43,7 @@ module Kanjai | ||
| 43 | elements = html_to_hash(source_dom) | 43 | elements = html_to_hash(source_dom) |
| 44 | 44 | ||
| 45 | source_dom.traverse do |node| | 45 | source_dom.traverse do |node| |
| 46 | - if node.name.to_s == 'condition' && node.attributes && node.attributes['id'] && node.attributes['itemName'] | 46 | + if node.name.to_s == 'condition' && node.attributes && node.attributes['id'] && node.attributes['itemname'] |
| 47 | 47 | ||
| 48 | repeatItemId = "" | 48 | repeatItemId = "" |
| 49 | test = node.parent | 49 | test = node.parent |
| @@ -57,7 +57,7 @@ module Kanjai | @@ -57,7 +57,7 @@ module Kanjai | ||
| 57 | 57 | ||
| 58 | conditions << { | 58 | conditions << { |
| 59 | id: node.attributes['id'].value, | 59 | id: node.attributes['id'].value, |
| 60 | - name: node.attributes['itemName'].value, | 60 | + name: node.attributes['itemname'].value, |
| 61 | repeat_id: repeatItemId | 61 | repeat_id: repeatItemId |
| 62 | } | 62 | } |
| 63 | end | 63 | end |