From ad7048af8ad1dcdb70da13dbe19cd8bb172be566 Mon Sep 17 00:00:00 2001 From: Kirill Kanyukov Date: Fri, 5 May 2023 11:27:03 +0300 Subject: [PATCH] #124 extend regex to include cyrillic letters --- src/XrmDefinitelyTyped/Generation/DataRetrieval.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrmDefinitelyTyped/Generation/DataRetrieval.fs b/src/XrmDefinitelyTyped/Generation/DataRetrieval.fs index e3c3afc2c79..adf523413eb 100644 --- a/src/XrmDefinitelyTyped/Generation/DataRetrieval.fs +++ b/src/XrmDefinitelyTyped/Generation/DataRetrieval.fs @@ -78,7 +78,7 @@ let retrieveViews entitiesToFetch rawEntityMetadata mainProxy : ViewData[] * Ent getViews entitiesToFetch mainProxy |> Seq.fold (fun previous (entityName, guid, viewName, fetchXml) -> let (previousNames, previousViews) = previous - let regex = new Regex(@"[^a-zA-Z0-9_]") + let regex = new Regex(@"[^a-zA-Zа-яА-Я0-9_]") let trimmedName = regex.Replace(viewName, "") |> fun s -> if Char.IsNumber(s, 0) then "_" + s else s