Allow emoji 🆑 tags

See https://github.com/tgstation/tgstation/pull/80115
This commit is contained in:
Jordan Dominion
2023-12-03 23:54:12 -05:00
parent 1c884d9860
commit 369a6c0f89
2 changed files with 9 additions and 9 deletions
@@ -682,7 +682,7 @@ namespace Tgstation.Server.ReleaseNotes
var trimmedLine = line.Trim();
if (targetComponent == null)
{
if (trimmedLine.StartsWith(":cl:", StringComparison.Ordinal))
if (trimmedLine.StartsWith(":cl:", StringComparison.Ordinal) || trimmedLine.StartsWith("🆑", StringComparison.Ordinal))
{
targetComponent = trimmedLine[4..].Trim();
if (targetComponent.Length == 0)
@@ -690,7 +690,7 @@ namespace Tgstation.Server.ReleaseNotes
}
continue;
}
if (trimmedLine.StartsWith("/:cl:", StringComparison.Ordinal))
if (trimmedLine.StartsWith("/:cl:", StringComparison.Ordinal) || trimmedLine.StartsWith("/🆑", StringComparison.Ordinal))
{
if(!Enum.TryParse<Component>(targetComponent, out var component))
component = targetComponent.ToUpperInvariant() switch