Explorar o código

fix: StringUtils#rtrim

Ranides Atterwim %!s(int64=9) %!d(string=hai) anos
pai
achega
695bf69b6b

+ 1 - 1
assira/src/main/java/net/ranides/assira/text/StringUtils.java

@@ -431,7 +431,7 @@ public final class StringUtils {
             return "";
             return "";
         }
         }
         int offset = text.length() - 1;
         int offset = text.length() - 1;
-        while(offset >= 0 && Character.isWhitespace(text.charAt(offset)) ) { 
+        while(offset >= 0 && cp.test(text.charAt(offset)) ) {
 			offset--; 
 			offset--; 
 		}
 		}
         return text.substring(0, offset+1);
         return text.substring(0, offset+1);