From 003d8a1b2127526d61585c810eb38155a5254617 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 27 Mar 2017 03:11:14 -0700 Subject: [PATCH] Fix a bug on regexp of a question mark --- browser/components/MarkdownPreview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js index 8ac02648..218c805e 100644 --- a/browser/components/MarkdownPreview.js +++ b/browser/components/MarkdownPreview.js @@ -15,7 +15,7 @@ function decodeHTMLEntities (text) { ['amp', '&'], ['lt', '<'], ['gt', '>'], - ['#63', '?'] + ['#63', '\\?'] ] for (var i = 0, max = entities.length; i < max; ++i) { @@ -31,7 +31,7 @@ function encodeHTMLEntities (text) { ['&', 'amp'], ['<', 'lt'], ['>', 'gt'], - ['?', '#63'] + ['\\?', '#63'] ] entities.forEach((entity) => {