mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed image and code appearance
This commit is contained in:
parent
c383356a4c
commit
0c7ed6de99
4 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
import { flatten } from 'ramda';
|
||||
import { flatten, isEmpty } from 'ramda';
|
||||
|
||||
export const splitTextByYoutube = (strings: string[]): string[] =>
|
||||
flatten(
|
||||
|
@ -8,4 +8,4 @@ export const splitTextByYoutube = (strings: string[]): string[] =>
|
|||
);
|
||||
|
||||
export const splitTextOmitEmpty = (strings: string[]): string[] =>
|
||||
strings.filter(el => !!el.trim());
|
||||
strings.map(el => el.trim()).filter(el => !isEmpty(el));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue