This commit is contained in:
2026-11-21 17:47:56 +03:30
parent bc66d86ed2
commit 102e95c59d
10 changed files with 995 additions and 25 deletions
+21
View File
@@ -52,5 +52,26 @@ namespace xApi.Extensions
//
return result;
}
/// <summary>
/// Normalize a URL Segment ...
/// </summary>
/// <param name="segment"></param>
/// <returns></returns>
public static string NormalizeUrlSegent(
this string segment
)
{
//
if (!string.IsNullOrWhiteSpace(segment) &&
segment.StartsWith("/")
)
{
segment = segment[1..];
}
//
return segment;
}
}
}