diff options
| author | ruki <[email protected]> | 2022-08-21 17:53:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-21 17:53:55 +0800 |
| commit | fe91d278ef7765fa5d6c8753def94754bde82b61 (patch) | |
| tree | 10df8ffd25a0fcf006959570a31f8f60b3672316 /xmake/modules/core/tools/rc.lua | |
| parent | 5ad9e8f386b40a003e8279ab5b8199de2ac74136 (diff) | |
fix find
Diffstat (limited to 'xmake/modules/core/tools/rc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/rc.lua b/xmake/modules/core/tools/rc.lua index 286cdd6da..65612bd38 100644 --- a/xmake/modules/core/tools/rc.lua +++ b/xmake/modules/core/tools/rc.lua @@ -42,10 +42,10 @@ end function _parse_includefile(line) if line:startswith("#line") then return line:match("#line %d+ \"(.+)\"") - elseif line:find("ICON", 1, true) and line:find(".ico") then + elseif line:find("ICON", 1, true) and line:find(".ico", 1, true) then -- 101 ICON "xxx.ico" return line:match("ICON%s+\"(.+.ico)\"") - elseif line:find("BITMAP", 1, true) and line:find(".bmp") then + elseif line:find("BITMAP", 1, true) and line:find(".bmp", 1, true) then return line:match("BITMAP%s+\"(.+.bmp)\"") end end |
