mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Fix Yaml Links
This commit is contained in:
1 parent
023a375578
commit
890e7ec026
1 file changed
+10
-1
@@ -259,7 +259,16 @@ internal static class TextFileHandler
|
||||
private static string ProcessLinks(string text)
|
||||
{
|
||||
return Regex.Replace(text, @"\[([^\]]+)\]\(([^)]+)\)",
|
||||
"<link=\"$2\"> <b>$1</b></link> ");
|
||||
match =>
|
||||
{
|
||||
string name = match.Groups[1].Value;
|
||||
string link = match.Groups[2].Value;
|
||||
|
||||
if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(link))
|
||||
return match.Value;
|
||||
|
||||
return $"<link=\"{link}\"> <b>{name}</b></link> ";
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user