Skip to content

Commit

Permalink
Fix to trim (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomeffinWay committed Mar 18, 2013
1 parent cb598be commit 77c620e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/tags/core/UtilTags.java
Expand Up @@ -63,9 +63,9 @@ else if (subType.equalsIgnoreCase("UUID"))
} catch (NumberFormatException e) { }

if (to > item_to_trim.length())
to = item_to_trim.length();
to = item_to_trim.length()+1;

event.setReplaced(item_to_trim.substring(from - 1, to));
event.setReplaced(item_to_trim.substring(from - 1, to - 1));
}
}

Expand Down

0 comments on commit 77c620e

Please sign in to comment.