Browse Source

Fix comment

pull/1072/head
Tatsunori Uchino 1 year ago
parent
commit
a091ed9c9b
  1. 2
      lib/rules_inline/state_inline.mjs

2
lib/rules_inline/state_inline.mjs

@ -120,7 +120,7 @@ StateInline.prototype.scanDelims = function (start, canSplitWord) {
if (pos <= 0) { return 0x20 }
const charCode = str.codePointAt(pos - 1)
// not low surrogates (BMP)
// undefined & 0xFC00 = 0
// undefined & 0xFC00 = 0, but never happens thanks to the first if
if ((charCode & 0xFC00) !== 0xDC00) { return charCode }
// undefined if out of range (leading stray low surrogates)

Loading…
Cancel
Save