From 9b56ea5725ca0ca5c22a572e78c5c39c38ff4249 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 8 Oct 2015 14:47:08 +0300 Subject: [PATCH] Fixed repeating slash messages --- app/js/lib/ng_utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index d963e7b1..a20357ce 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1631,9 +1631,7 @@ angular.module('izhukov.utils', []) default: skipEntity = true; } - if (!skipEntity) { - lastOffset = entity.offset + entity.length; - } + lastOffset = entity.offset + (skipEntity ? 0 : entity.length); } html.push(encodeEntities(text.substr(lastOffset)));