nodebb-plugin-link-preview 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js CHANGED
@@ -116,7 +116,7 @@ async function process(content, { type, pid, tid, attachments }) {
116
116
  const urlMatch = match[0].match(/href=["'](.*?)["']/);
117
117
  let url = urlMatch ? decodeURI(urlMatch[1]) : '';
118
118
  const text = match[0].replace(/<[^>]+>/g, ''); // Strip tags to get text
119
- if (url === text) {
119
+ if (url !== text) {
120
120
  match = anchorRegex.exec(content);
121
121
  continue;
122
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  {{{ if favicons.length }}}
21
21
  {{{ each favicons }}}
22
22
  {{{ if @first }}}
23
- <img src="{@value}" alt="favicon" class="not-responsive" style="max-width: 21px; max-height: 21px;" />
23
+ <img src="{@value}" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" />
24
24
  {{{ end }}}
25
25
  {{{ end }}}
26
26
  {{{ end }}}