Fixed NaN

This commit is contained in:
Igor Zhukov 2016-11-18 17:04:08 +03:00
parent 439ee9ecad
commit a1aca53f9a

View File

@ -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