Skip to content

Commit 16bca9f

Browse files
Merge pull request #443 from mohamed-cds/fix/global_replace_date_author
fix: global replace date and author incident comments
2 parents 92526f9 + c2d3281 commit 16bca9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Incident.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@
133133
<div>
134134
{@html config.i18n.incidentCommentSummary
135135
.replace(
136-
/\$DATE/,
136+
/\$DATE/g,
137137
`<a href=${comment.html_url}>${new Date(comment.created_at).toLocaleString()}</a>`
138138
)
139-
.replace(/\$AUTHOR/, `<a href=${comment.user.html_url}>@${comment.user.login}</a>`)}
139+
.replace(/\$AUTHOR/g, `<a href=${comment.user.html_url}>@${comment.user.login}</a>`)}
140140
</div>
141141
</article>
142142
{/each}

0 commit comments

Comments
 (0)