UNPKG
fraction.io
Version:
latest (0.22.0)
0.22.0
0.21.3
0.21.2
Your personalized community aggregator.
github.com/fraction/fraction
fraction/fraction
fraction.io
/
app
/
packages
/
fraction-comments
/
views
/
viewComment.next.js
12 lines
(10 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
Template
.
viewComment
.
helpers
({ cleanText :
function
(
) {
// replace '\n' with a newline character
return
this
.
text
.
replace
(
/\\n/g
,
"\n"
); }, timeCopy :
function
(
) {
return
Utilities
.
timeSince
(
new
Date
(
this
.
created_at
)); } });