mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
chore: 优化
This commit is contained in:
@@ -40,5 +40,8 @@ export default {
|
||||
return str.length > length ? str.slice(0, length) + "..." : str;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
transformLink(desc: string = "") {
|
||||
return desc.replace(/\[(.*)\]\((.*)\)/g, '<a href="$2" target="_blank">$1</a>');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user