More target-typed new and redundant paranthesis cleanup

This commit is contained in:
Kwoth
2021-12-20 00:33:11 +01:00
parent 345a9e9524
commit 1b2017024c
152 changed files with 573 additions and 580 deletions

View File

@@ -74,11 +74,11 @@ public static class CustomReactionExtensions
private static bool isValidWordDivider(this in ReadOnlySpan<char> str, int index)
{
var ch = str[index];
if (ch >= 'a' && ch <= 'z')
if (ch is >= 'a' and <= 'z')
return false;
if (ch >= 'A' && ch <= 'Z')
if (ch is >= 'A' and <= 'Z')
return false;
if (ch >= '1' && ch <= '9')
if (ch is >= '1' and <= '9')
return false;
return true;