added spacing on urls

This commit is contained in:
Nicolas Constant 2020-07-31 23:13:17 -04:00
parent 4fa8b1ade2
commit 4e9e096a65
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace BirdsiteLive.Domain.Tools
});
messageContent = Regex.Replace(messageContent, m.ToString(),
$@"<a href=""{url}"" class=""mention hashtag"" rel=""tag"">#<span>{tag}</span></a>");
$@" <a href=""{url}"" class=""mention hashtag"" rel=""tag"">#<span>{tag}</span></a>");
}
var mentionMatch = _mentionRegex.Matches(messageContent);
@ -59,7 +59,7 @@ namespace BirdsiteLive.Domain.Tools
});
messageContent = Regex.Replace(messageContent, m.ToString(),
$@"<span class=""h-card""><a href=""https://{_instanceSettings.Domain}/@{mention}"" class=""u-url mention"">@<span>{mention}</span></a></span>");
$@" <span class=""h-card""><a href=""https://{_instanceSettings.Domain}/@{mention}"" class=""u-url mention"">@<span>{mention}</span></a></span>");
}
return (messageContent, tags.ToArray());