feat: migrate from github

This commit is contained in:
2024-05-12 01:52:39 -07:00
commit 7437deab71
118 changed files with 10375 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/**
* Determines if a string is longer than the given length, and if so
* substrings it and appends an ellipsis.
*
* @param {string} str The string to shorten.
* @param {number} len The maximum allowed length for the string.
* @returns {string} The potentially shortened string.
*/
export const customSubstring = (str: string, len: number): string => {
return str.length > len ? str.substring(0, len - 3) + "..." : str;
};