Limit reported error length

This commit is contained in:
M66B
2024-01-28 09:29:40 +01:00
parent f8f9d50590
commit 5ff0ca0267
4 changed files with 12 additions and 5 deletions

View File

@@ -2649,6 +2649,12 @@ public class Helper {
return value;
}
static String limit(String value, int max) {
if (TextUtils.isEmpty(value) || value.length() < max)
return value;
return value.substring(0, max);
}
// Files
static {