mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 22:23:23 +00:00
handle iris.to links internally
This commit is contained in:
parent
095aff6876
commit
ce5529f80e
@ -156,11 +156,7 @@ export default {
|
||||
});
|
||||
|
||||
replacedText = reactStringReplace(replacedText, /(https?:\/\/\S*[^.?,)\s])/gi, (match, i) => (
|
||||
<a
|
||||
key={match + i}
|
||||
href={match}
|
||||
target={match.startsWith('https://iris.to') ? '_self' : '_blank'}
|
||||
>
|
||||
<a key={match + i} href={match.replace(/^https:\/\/iris.to/, '')}>
|
||||
{match}
|
||||
</a>
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user