From 987849edd0a63231ac5e9d6aa386b19b7114adf9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 06:25:47 +0200 Subject: [PATCH] VerseGrammar: escape the regex end anchor (previous commit did not build) Co-Authored-By: Claude Opus 5.5 --- Assets/Scripts/ServerShared/VerseGrammar.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/ServerShared/VerseGrammar.cs b/Assets/Scripts/ServerShared/VerseGrammar.cs index 230850d76..24642df5e 100644 --- a/Assets/Scripts/ServerShared/VerseGrammar.cs +++ b/Assets/Scripts/ServerShared/VerseGrammar.cs @@ -55,8 +55,8 @@ public class VerseVerb public static class VerseGrammarValidation { - private static readonly Regex VerbName = new Regex("^[a-z][a-z0-9_]{0,47}\z", RegexOptions.CultureInvariant); - private static readonly Regex RoleName = new Regex("^[a-z][a-z0-9_]{0,31}\z", RegexOptions.CultureInvariant); + private static readonly Regex VerbName = new Regex("^[a-z][a-z0-9_]{0,47}\\z", RegexOptions.CultureInvariant); + private static readonly Regex RoleName = new Regex("^[a-z][a-z0-9_]{0,31}\\z", RegexOptions.CultureInvariant); // Canonical names, unique role names, defined enum values. A failure names the field and the rule, and the verb once // its name is known canonical; it never prints a value the author wrote that is itself the fault.