mirror of
https://github.com/certd/certd.git
synced 2026-04-20 09:50:50 +08:00
chore: ipv6支持
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const stringUtils = {
|
||||
maxLength(str?: string, length = 100) {
|
||||
if (str) {
|
||||
return str.length > length ? str.slice(0, length) + '...' : str;
|
||||
}
|
||||
return '';
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user