Skip to content

Commit

Permalink
fix: added and to schemaname and trimmed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Dec 5, 2023
1 parent 2640f04 commit fd81cea
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sdk/DefaultSchemaNameManager.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
namespace EAVFW.Extensions.Manifest.SDK
namespace EAVFW.Extensions.Manifest.SDK
{
public class DefaultSchemaNameManager : ISchemaNameManager
{
public string ToSchemaName(string displayName)
{
return displayName?.Replace(" ", "").Replace(":", "_").Replace("/", "or").Replace("-", "").Replace("(", "").Replace(")", "").Replace(".",""); ;
return displayName
?.Replace(" ", "")
.Replace(":", "_")
.Replace("/", "Or")
.Replace("&","And")
.Replace("-", "")
.Replace("(", "")
.Replace(")", "")
.Replace(".","")
.Trim();
}
}
}

0 comments on commit fd81cea

Please sign in to comment.