mirror of https://github.com/abpframework/abp.git
4 changed files with 39 additions and 14 deletions
@ -0,0 +1,18 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Docs.Utils |
|||
{ |
|||
public static class UrlHelper |
|||
{ |
|||
public static bool IsExternalLink(string path) |
|||
{ |
|||
if (path.IsNullOrEmpty()) |
|||
{ |
|||
return false; |
|||
} |
|||
|
|||
return path.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || |
|||
path.StartsWith("https://", StringComparison.OrdinalIgnoreCase); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue