Made breadcrumbs dynamic and moved it to a shared partial view.

This commit is contained in:
Daniel Wathen
2023-01-26 15:05:27 -07:00
parent a02b544f58
commit 39d152ca48
13 changed files with 70 additions and 62 deletions

View File

@ -1,4 +1,6 @@
namespace ReportingServices.Shared.HelperClasses;
using System.Text.RegularExpressions;
namespace ReportingServices.Shared.HelperClasses;
public static class APIHelperFunctions
{
@ -50,4 +52,14 @@ public static class APIHelperFunctions
return temp;
}
public static string SplitOnCamelCase(string input)
{
Regex r = new(@"
(?<=[A-Z])(?=[A-Z][a-z]) |
(?<=[^A-Z])(?=[A-Z]) |
(?<=[A-Za-z])(?=[^A-Za-z])", RegexOptions.IgnorePatternWhitespace);
return r.Replace(input, " ");
}
}