diff --git a/lib/rules_inline/state_inline.mjs b/lib/rules_inline/state_inline.mjs index 225837b..d1c00a6 100644 --- a/lib/rules_inline/state_inline.mjs +++ b/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)