Skip to content

Commit

Permalink
italyc comments usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed May 16, 2024
1 parent 1d095f6 commit 5f83847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/loadComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function loadComments(comments) {
for (let i = 0; i < comments.length; i++) {
commentsHtml += /*html*/ `
<div class="message">
<p class="user">USER#${comments[i].IP.match(/\d/g)
<p class="user"><i>USER#${comments[i].IP.match(/\d/g)
.join("")
.slice(0, 6)}:</p>
.slice(0, 6)}:</i></p>
<p>${comments[i].content}</p>
</div>
`;
Expand Down

0 comments on commit 5f83847

Please sign in to comment.