Browse files

empty string is false

  • Loading branch information...
1 parent 0242298 commit 3641da9fc907515b81beb92861afd151e2b871dc @shenfeng committed Dec 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/java/me/shenfeng/mustache/Context.java
View
2 src/java/me/shenfeng/mustache/Context.java
@@ -36,6 +36,8 @@ public static boolean isFalse(Object v) {
return true;
} else if ((v instanceof List) && ((List) v).isEmpty()) {
return true;
+ } else if((v instanceof String) && ((String)v).isEmpty()) {
+ return true;
}
return false;
}

0 comments on commit 3641da9

Please sign in to comment.