mirror of
https://github.com/xoofx/markdig.git
synced 2026-11-16 09:20:40 +00:00
Fix StringSlice overlaps
Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user