commit 65d5b547ea6fafc70f9e907a09d13456366f7625
parent 36e7fd7f50aa7259dd3354bfdad05f1b3e4670dc
Author: Jackson G. Kaindume <kaindume@kwatafana.org>
Date: Sat, 3 Sep 2022 15:06:30 +0200
midot adjustments
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/src/drtx_base.dart b/lib/src/drtx_base.dart
@@ -2,9 +2,9 @@ class X {
/// if a string is has 13 characters or more it return the first 5 characters
/// with 3 (...) dots and the last 5 characters
static String midot(String str) {
- if (str.length > 13) {
- final start = str.substring(0, 5);
- final end = str.substring(str.length - 5);
+ if (str.length > 20) {
+ final start = str.substring(0, 12);
+ final end = str.substring(str.length - 4);
return "$start...$end";
}
return str;