diff options
| author | taehoon <th.dev91@gmail.com> | 2019-08-13 13:11:37 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-08-13 13:11:37 -0400 |
| commit | 9229f28edbdcf33be3e053647f202a31f84c58ec (patch) | |
| tree | 00726105d9c3d67d869a1da8a7d92c1a03d7fe8d /src | |
| parent | 5aa2c44487606f137a9bc524b6bf9b1349d058b9 (diff) | |
rel also accepts list, update rel detection logic
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
