Made breadcrumbs dynamic and moved it to a shared partial view.
This commit is contained in:
@ -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, " ");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user