Skip to content

Commit

Permalink
Don't do map_get weirdly
Browse files Browse the repository at this point in the history
return the whole result set, not just the first item in a sub-list.
  • Loading branch information
mcmonkey4eva committed Oct 25, 2014
1 parent 42030c1 commit 66fbe7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dList.java
Expand Up @@ -416,7 +416,7 @@ public String getAttribute(Attribute attribute) {
}

for (String item : this) {
String[] strings = item.split(Pattern.quote(split));
String[] strings = item.split(Pattern.quote(split), 2);
if (strings.length > 1 && strings[0].equalsIgnoreCase(input)) {
return new Element(strings[1]).getAttribute(attribute);
}
Expand Down

0 comments on commit 66fbe7b

Please sign in to comment.