Browse Source

Fixed NaN

master
Igor Zhukov 8 years ago
parent
commit
a1aca53f9a
  1. 2
      app/js/lib/ng_utils.js

2
app/js/lib/ng_utils.js

@ -1451,7 +1451,7 @@ angular.module('izhukov.utils', []) @@ -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

Loading…
Cancel
Save