Optimization of string splitting (#13812)
This commit is contained in:
parent
64f14b05fa
commit
42c9edaf6e
@ -147,7 +147,7 @@ export function codeFrameColumns(
|
||||
const highlightedLines = highlighted ? highlight(rawLines, opts) : rawLines;
|
||||
|
||||
let frame = highlightedLines
|
||||
.split(NEWLINE)
|
||||
.split(NEWLINE, end)
|
||||
.slice(start, end)
|
||||
.map((line, index) => {
|
||||
const number = start + 1 + index;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user