From f1f8e9526e805d13e45ba63faebf956d0e79d79c Mon Sep 17 00:00:00 2001
From: Danish Ahmed Mirza <77742477+try-catch-stack@users.noreply.github.com>
Date: Mon, 23 May 2022 23:35:00 +0530
Subject: [PATCH] [FIX] Channel mentions when the slug starts with underscore
 (#4108)

---
 patches/commonmark+0.29.0.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 patches/commonmark+0.29.0.patch

diff --git a/patches/commonmark+0.29.0.patch b/patches/commonmark+0.29.0.patch
new file mode 100644
index 000000000..c0119b344
--- /dev/null
+++ b/patches/commonmark+0.29.0.patch
@@ -0,0 +1,13 @@
+diff --git a/node_modules/commonmark/lib/inlines.js b/node_modules/commonmark/lib/inlines.js
+index 4179cfd..478bbd5 100644
+--- a/node_modules/commonmark/lib/inlines.js
++++ b/node_modules/commonmark/lib/inlines.js
+@@ -996,7 +996,7 @@ var parseEmail = function(block) {
+     }
+ }
+ 
+-var reHashtag = XRegExp.cache('^#(\\pL[\\pL\\d\\-_.]*[\\pL\\d])');
++var reHashtag = XRegExp.cache('^#([\\pL\\d\\-_.]*[\\pL\\d])');
+ var parseHashtag = function(block) {
+     if (this.brackets) {
+         // Don't perform autolinking while inside an explicit link
-- 
GitLab