rel also accepts list, update rel detection logic
This commit is contained in:
parent
5aa2c44487
commit
9229f28edb
|
@ -335,7 +335,7 @@ const Status = {
|
||||||
return
|
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
|
// Extract tag name from link url
|
||||||
const tag = extractTagFromUrl(target.href)
|
const tag = extractTagFromUrl(target.href)
|
||||||
if (tag) {
|
if (tag) {
|
||||||
|
|
Loading…
Reference in New Issue