Skip to content

Commit ee946b2

Browse files
authored
use strstr instead of TextFindIndex (#4764)
1 parent 1d87932 commit ee946b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rcore.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3696,7 +3696,7 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
36963696
}
36973697
else
36983698
{
3699-
if (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0)
3699+
if (strstr(filter, DIRECTORY_FILTER_TAG) != NULL)
37003700
{
37013701
strcpy(files->paths[files->count], path);
37023702
files->count++;
@@ -3762,7 +3762,7 @@ static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *fi
37623762
}
37633763
else
37643764
{
3765-
if ((filter != NULL) && (TextFindIndex(filter, DIRECTORY_FILTER_TAG) >= 0))
3765+
if ((filter != NULL) && (strstr(filter, DIRECTORY_FILTER_TAG) != NULL))
37663766
{
37673767
strcpy(files->paths[files->count], path);
37683768
files->count++;

0 commit comments

Comments
 (0)