mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed the CountOccurrences function
This commit is contained in:
@@ -1012,7 +1012,7 @@ namespace RuriLib
|
||||
// Loop through all instances of the string 'text'.
|
||||
int count = 0;
|
||||
int i = 0;
|
||||
while ((i = text.IndexOf(text, i)) != -1)
|
||||
while ((i = input.IndexOf(text, i)) != -1)
|
||||
{
|
||||
i += text.Length;
|
||||
count++;
|
||||
|
||||
Reference in New Issue
Block a user