forked from github/plane
style: kanban dropdowns, github integration loaders
This commit is contained in:
@@ -4,6 +4,9 @@ export const replaceUnderscoreIfSnakeCase = (str: string) => str.replace(/_/g, "
|
||||
|
||||
export const capitalizeFirstLetter = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
|
||||
|
||||
export const truncateText = (str: string, length: number) =>
|
||||
str.length > length ? `${str.substring(0, length)}...` : str;
|
||||
|
||||
export const createSimilarString = (str: string) => {
|
||||
const shuffled = str
|
||||
.split("")
|
||||
|
||||
Reference in New Issue
Block a user