mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 08:46:44 +00:00
Update NuGet packages
This commit is contained in:
@@ -30,7 +30,8 @@ internal class AggregateMatcher<T> : IMatcher<T>
|
||||
|
||||
// If this match is earlier than previous earliest - replace
|
||||
if (
|
||||
earliestMatch is null || match.Segment.StartIndex < earliestMatch.Segment.StartIndex
|
||||
earliestMatch is null
|
||||
|| match.Segment.StartIndex < earliestMatch.Segment.StartIndex
|
||||
)
|
||||
earliestMatch = match;
|
||||
|
||||
|
||||
@@ -24,12 +24,10 @@ internal class StringMatcher<T> : IMatcher<T>
|
||||
|
||||
public ParsedMatch<T>? TryMatch(StringSegment segment)
|
||||
{
|
||||
var index = segment.Source.IndexOf(
|
||||
_needle,
|
||||
segment.StartIndex,
|
||||
segment.Length,
|
||||
_comparison
|
||||
);
|
||||
var index = segment
|
||||
.Source
|
||||
.IndexOf(_needle, segment.StartIndex, segment.Length, _comparison);
|
||||
|
||||
if (index < 0)
|
||||
return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user