mirror of
https://github.com/xoofx/markdig.git
synced 2026-11-16 09:20:40 +00:00
Update src/Markdig/Helpers/LinkHelper.cs
Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ee403ce28f
commit
90c73b7754
@@ -1006,7 +1006,7 @@ public static class LinkHelper
|
||||
return c == '\0' || c.IsSpaceOrTab() || c.IsControl() || (isAutoLink && c == '<'); // TODO: specs unclear. space is strict or relaxed? (includes tabs?)
|
||||
}
|
||||
|
||||
public static bool IsValidDomain(string link, int prefixLength, bool allowDomainWithoutPeriod)
|
||||
public static bool IsValidDomain(string link, int prefixLength, bool allowDomainWithoutPeriod = false)
|
||||
{
|
||||
// https://github.github.com/gfm/#extended-www-autolink
|
||||
// A valid domain consists of alphanumeric characters, underscores (_), hyphens (-) and periods (.).
|
||||
|
||||
Reference in New Issue
Block a user