From a1aca53f9a17f695813cddc3321b1eea691e665c Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 18 Nov 2016 17:04:08 +0300 Subject: [PATCH] Fixed NaN --- app/js/lib/ng_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index ef10984d..bd2d8513 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1451,7 +1451,7 @@ angular.module('izhukov.utils', []) offset: matchIndex, length: text.length }) - rawOffset -= match[0] - text.length + rawOffset -= match[0].length - text.length } raw = raw.substr(match.index + match[0].length) rawOffset += match.index + match[0].length