We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1405fb commit 1a6465dCopy full SHA for 1a6465d
1 file changed
server/utils/readme.ts
@@ -570,10 +570,10 @@ ${html}
570
}
571
572
// Security attributes for external links
573
- let extraAttrs = ''
574
- if (resolvedHref && hasProtocol(resolvedHref, { acceptRelative: true })) {
575
- extraAttrs = ' rel="nofollow noreferrer noopener" target="_blank"'
576
- }
+ let extraAttrs =
+ resolvedHref && hasProtocol(resolvedHref, { acceptRelative: true })
+ ? ' rel="nofollow noreferrer noopener" target="_blank"'
+ : ''
577
578
return { resolvedHref, extraAttrs }
579
0 commit comments