Fix StringSlice overlaps

Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
This commit is contained in:
Alexandre Mutel
2021-03-03 05:32:28 +01:00
committed by GitHub
parent b6e38a0a96
commit 80d4e6f344

View File

@@ -507,15 +507,8 @@ namespace Markdig.Helpers
{
return false;
}
if (Start <= other.End)
{
return true;
}
if (End <= other.Start)
{
return true;
}
return false;
return Start <= other.End && End >= other.Start;
}
}
}
}