fix(core): Updates slice with range selectors (#583)
- [X] Replaces Span slicing with range selection - [X] Replaces string slicing with range selection
This commit is contained in:
parent
9f9d990f85
commit
a0893b68c0
62 changed files with 363 additions and 382 deletions
|
|
@ -257,7 +257,7 @@ namespace Server
|
|||
|
||||
if (type != MessageType.Command)
|
||||
{
|
||||
text = text.Substring(Prefix.Length);
|
||||
text = text[Prefix.Length..];
|
||||
}
|
||||
|
||||
var indexOf = text.IndexOfOrdinal(' ');
|
||||
|
|
@ -268,9 +268,9 @@ namespace Server
|
|||
|
||||
if (indexOf >= 0)
|
||||
{
|
||||
argString = text.Substring(indexOf + 1);
|
||||
argString = text[(indexOf + 1)..];
|
||||
|
||||
command = text.Substring(0, indexOf);
|
||||
command = text[..indexOf];
|
||||
args = Split(argString);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue