mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-07-07 13:28:16 +08:00
<chore>
This commit is contained in:
14
src/Extensions/UriExtensions.cs
Normal file
14
src/Extensions/UriExtensions.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace NSExt.Extensions;
|
||||
|
||||
public static class UriExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 移除url的Scheme
|
||||
/// </summary>
|
||||
/// <param name="me"></param>
|
||||
/// <returns></returns>
|
||||
public static string RemoveScheme(this Uri me)
|
||||
{
|
||||
return "//" + me.Authority + me.PathAndQuery;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user