From 9229f28edbdcf33be3e053647f202a31f84c58ec Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 13 Aug 2019 13:11:37 -0400
Subject: [PATCH] rel also accepts list, update rel detection logic
---
src/components/status/status.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 5204fa73..502d9583 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -335,7 +335,7 @@ const Status = {
return
}
}
- if (target.rel === 'tag' || target.className.match(/hashtag/)) {
+ if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
// Extract tag name from link url
const tag = extractTagFromUrl(target.href)
if (tag) {