Skip to content

Commit 7fb05bd

Browse files
committed
chore: rename whitespaceTokenRegex [skip ci]
1 parent 7d8610c commit 7fb05bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mixins/canvas-drawer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ function updateTokensLayer (tokensLayer, firstRow, lastRow, offscreenFirstRow, o
608608
tokensLayer.copyToOffscreen()
609609
}
610610

611-
const emptyLineRegexp = /^\s+$/
611+
const whitespaceTokenRegex = /^\s+$/
612612
const oneOrMoreWhiteSpaceRegexp = /\s+/
613613

614614
/**
@@ -705,7 +705,7 @@ function drawLines (firstRow, lastRow, offsetRow, lineHeight, charHeight, charWi
705705
}
706706
if (x > canvasWidth) { continue }
707707

708-
if (emptyLineRegexp.test(tokenText)) {
708+
if (whitespaceTokenRegex.test(tokenText)) {
709709
x += tokenText.length * charWidth
710710
} else {
711711
x = drawToken(

0 commit comments

Comments
 (0)