Skip to content

Commit 6ec0e0b

Browse files
author
patryk.bujalla
committed
add new signs to map
1 parent c2140da commit 6ec0e0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PortaCapena.OdooJsonRpcClient/Converters/OdooModelMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ public static string ConvertToDotNetPropertyTypeName(KeyValuePair<string, OdooPr
191191

192192
public static string ConvertOdooNameToDotNet(string odooName)
193193
{
194-
var odooNameCleaned = Regex.Replace(odooName, "[^A-Za-z0-9 -]", "_");
195-
var dotnetKeys = odooNameCleaned.Split('_').Select(x => CultureInfo.InvariantCulture.TextInfo.ToTitleCase(x));
194+
var odooNameCleaned = Regex.Replace(odooName, "[^A-Za-z0-9-]", "_");
195+
var dotnetKeys = odooNameCleaned.Split('_', '-', '.', ',', ' ', ':', ';', '/', '\\', '*', '+', '(', ')', '[', ']').Select(x => CultureInfo.InvariantCulture.TextInfo.ToTitleCase(x));
196196
return string.Join(string.Empty, dotnetKeys);
197197
}
198198

0 commit comments

Comments
 (0)