Skip to content

Commit

Permalink
fix: 🐛 fix slack channel mention tokenizer match symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
themashcodee committed Jun 27, 2024
1 parent 3f9b0a2 commit 8ec12e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis> = func
const potentialDelimiters: ITokenDelimiter[] = [];
for (let i = blockStartIndex; i < blockEndIndex; ++i) {
const c = nodePoints[i]?.codePoint;
if (c === AsciiCodePoint.OPEN_ANGLE && nodePoints[i + 1]?.codePoint === AsciiCodePoint.HT) {
if (
c === AsciiCodePoint.OPEN_ANGLE &&
nodePoints[i + 1]?.codePoint === AsciiCodePoint.NUMBER_SIGN
) {
const j = eatOptionalCharacters(nodePoints, i + 2, blockEndIndex, AsciiCodePoint.AT_SIGN);
if (j < blockEndIndex) {
potentialDelimiters.push({
Expand Down

0 comments on commit 8ec12e9

Please sign in to comment.