MCPcopy Index your code
hub / github.com/dataease/SQLBot / getLine

Function getLine

frontend/public/swagger-ui-bundle.js:32329–32338  ·  view source on GitHub ↗
(s, o, i, a, u)

Source from the content-addressed store, hash-verified

32327 }))
32328 var tr = YAMLException$1
32329 function getLine(s, o, i, a, u) {
32330 var _ = '',
32331 w = '',
32332 x = Math.floor(u / 2) - 1
32333 return (
32334 a - o > x && (o = a - x + (_ = ' ... ').length),
32335 i - a > x && (i = a + x - (w = ' ...').length),
32336 { str: _ + s.slice(o, i).replace(/\t/g, '→') + w, pos: a - o + _.length }
32337 )
32338 }
32339 function padStart(s, o) {
32340 return er.repeat(' ', o - s.length) + s
32341 }

Callers 1

rrFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected