summaryrefslogtreecommitdiffstats
path: root/webapp/utils/markdown.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-27 09:56:41 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-27 09:56:41 -0400
commit1e7805b79025823fba4479ffaa354e9c756d6622 (patch)
treec9af94e41da25be51b6afcc8b8a604c5a4978d7e /webapp/utils/markdown.jsx
parentec7a273550a1aaf31e80abc90c99d06a94664b5d (diff)
downloadchat-1e7805b79025823fba4479ffaa354e9c756d6622.tar.gz
chat-1e7805b79025823fba4479ffaa354e9c756d6622.tar.bz2
chat-1e7805b79025823fba4479ffaa354e9c756d6622.zip
Fixed ESLint errors (#3134)
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r--webapp/utils/markdown.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx
index 18d5cf128..809ecc526 100644
--- a/webapp/utils/markdown.jsx
+++ b/webapp/utils/markdown.jsx
@@ -130,10 +130,10 @@ class MattermostMarkdownRenderer extends marked.Renderer {
if (/^\d+.$/.test(bullet)) {
// this is a numbered list item so override the numbering
- return `<li value="${parseInt(bullet)}">${text}</li>`;
- } else {
- return `<li>${text}</li>`;
+ return `<li value="${parseInt(bullet, 10)}">${text}</li>`;
}
+
+ return `<li>${text}</li>`;
}
text(txt) {