From f3ce5151f6f9e1e9bbe96c3067a77f8c4b0c51a8 Mon Sep 17 00:00:00 2001 From: Viktor Oreshkin Date: Sun, 20 Nov 2016 04:24:47 -0500 Subject: [PATCH] Fix dumb error in previous commit Signed-off-by: Viktor Oreshkin --- app/js/lib/ng_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index f682e2bf..a29b5f61 100755 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1442,7 +1442,7 @@ angular.module('izhukov.utils', []) length: text.length }) rawOffset -= match[2].length + match[4].length - } else if (match[9]) { // code + } else if (match[7]) { // code newText.push(match[6] + text + match[9]) entities.push({ _: markdownEntities[match[7]], @@ -1962,4 +1962,4 @@ angular.module('izhukov.utils', []) }) return timeParams - }) \ No newline at end of file + })