浏览代码

Removing +1 on comparing extesnions because this way it checked the file extension without the . against the file extension with the . resulting in always false. (#1629)

pull/1635/head
hristo 3 年前
committed by GitHub
父节点
当前提交
81908f7960
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c 查看文件

@ -2325,7 +2325,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
for (int i = 0; i < extCount; i++)
{
if (TextIsEqual(fileExtLower, TextToLower(checkExts[i] + 1)))
if (TextIsEqual(fileExtLower, TextToLower(checkExts[i])))
{
result = true;
break;

正在加载...
取消
保存