From aacdb72d6a6850d332315b2bd3318388f8b06209 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 17 May 2025 17:42:07 +0200 Subject: [PATCH] Remove LunaseaRecord --- API/APIEndpointRecords/LunaseaRecord.cs | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 API/APIEndpointRecords/LunaseaRecord.cs diff --git a/API/APIEndpointRecords/LunaseaRecord.cs b/API/APIEndpointRecords/LunaseaRecord.cs deleted file mode 100644 index 9bd1a53..0000000 --- a/API/APIEndpointRecords/LunaseaRecord.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Text.RegularExpressions; - -namespace API.APIEndpointRecords; - -public record LunaseaRecord(string id) -{ - private static Regex validateRex = new(@"(?:device|user)\/[0-9a-zA-Z\-]+"); - public bool Validate() - { - if (id == string.Empty) - return false; - if (!validateRex.IsMatch(id)) - return false; - return true; - } -} \ No newline at end of file