We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SubstringAfter
1 parent 31cefef commit 062d1ccCopy full SHA for 062d1cc
YoutubeExplode/Utils/Extensions/StringExtensions.cs
@@ -25,10 +25,7 @@ public string SubstringAfter(
25
)
26
{
27
var index = str.IndexOf(sub, comparison);
28
-
29
- return index < 0
30
- ? string.Empty
31
- : str.Substring(index + sub.Length, str.Length - index - sub.Length);
+ return index < 0 ? string.Empty : str[(index + sub.Length)..];
32
}
33
34
public string StripNonDigit()
0 commit comments