mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 18:18:12 +08:00
remove maybeTruncateString
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
const maybeTruncateString = (str, maxLength) => {
|
|
||||||
let truncatedString = null;
|
|
||||||
if (str.length > maxLength) {
|
|
||||||
truncatedString = `${str.slice(0, maxLength / 2)}…${str.slice(
|
|
||||||
-maxLength / 2
|
|
||||||
)}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return truncatedString;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default maybeTruncateString;
|
|
||||||
Reference in New Issue
Block a user