We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b890649 commit 41827d6Copy full SHA for 41827d6
lib/helper/utility.dart
@@ -166,8 +166,11 @@ List<String> getHashTags(String text) {
166
return resultMatches;
167
}
168
169
-String getUserName({String name, String id}) {
+String getUserName({ String id,String name,}) {
170
String userName = '';
171
+ if(name.length > 15){
172
+ name = name.substring(0,6);
173
+ }
174
name = name.split(' ')[0];
175
id = id.substring(0, 4).toLowerCase();
176
userName = '@$name$id';
0 commit comments