refac
This commit is contained in:
1 parent
677c36c3aa
commit
6afc686e17
6 files changed
+22
-10
No files matched your search
@@ -889,5 +889,6 @@ export const formatFileSize = (size) => {
|
||||
};
|
||||
|
||||
export const getLineCount = (text) => {
|
||||
return text.split('\n').length;
|
||||
console.log(typeof text);
|
||||
return text ? text.split('\n').length : 0;
|
||||
};
|
||||
Reference in new issue
Block a user