1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed date on recent items

This commit is contained in:
Fedor Katurov 2019-11-05 17:17:07 +07:00
parent 8a37fa1f1b
commit fc57a6224b
2 changed files with 3 additions and 8 deletions

View file

@ -80,11 +80,6 @@ export const formatText = (text: string): string =>
.replace(/:\|--\|/gim, '://')
.split('\n')
.map(el => `<p>${el}</p>`)
// .map((el, index) =>
// index === 0
// ? `${author ? `<p><b class="comment-author">${author}: </b>` : ''}${el}</p>`
// : `<p>${el}</p>`
// )
.join('');
export const formatCommentText = (author: string, text: string): string =>