mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
disable single attribute per line
This commit is contained in:
@@ -20,12 +20,7 @@ export const replaceURLWithHTMLLinks = (text: string) => {
|
||||
const link = match[0];
|
||||
const prefix = link.startsWith('http') ? '' : 'https://';
|
||||
elements.push(
|
||||
<a
|
||||
href={prefix + link}
|
||||
key={lastIndex}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<a href={prefix + link} key={lastIndex} rel="noopener noreferrer" target="_blank">
|
||||
{link}
|
||||
</a>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user