From 259a529bca26a573d457a44e988495f24fbfa232 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 9 Feb 2017 21:56:17 +0900 Subject: [PATCH] Fix bug --- src/common/text/elements/code.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/text/elements/code.js b/src/common/text/elements/code.js index d6dbd1cdc..4a3ba9253 100644 --- a/src/common/text/elements/code.js +++ b/src/common/text/elements/code.js @@ -110,6 +110,8 @@ const elements = [ for (let i = 1; i < code.length; i++) { const char = code[i]; if (char == '\\') { + str += char; + str += code[i + 1] || ''; i++; continue; } else if (char == begin) { @@ -140,6 +142,8 @@ const elements = [ for (let i = 1; i < code.length; i++) { const char = code[i]; if (char == '\\') { + regexp += char; + regexp += code[i + 1] || ''; i++; continue; } else if (char == '/') {