diff options
| author | ruki <[email protected]> | 2020-03-18 22:48:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-18 10:53:29 +0800 |
| commit | dd941c7ecac8c9d500660ed7ffc1af36b2ba54b6 (patch) | |
| tree | 781c9c96e654b1d76a6fc1cedffb6bcb191093d2 /xmake/modules/utils | |
| parent | 5c3a3168f645495cc5d2ab3472d1e3d366bbb004 (diff) | |
rename string.find_last to lastof
Diffstat (limited to 'xmake/modules/utils')
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index fa80e2f25..16e174b31 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -334,11 +334,11 @@ function _extension(archivefile, extractors) -- get extension local extension = "" - local i = filename:find_last(".", true) + local i = filename:lastof(".", true) if i then -- get next extension if exists - local p = filename:sub(1, i - 1):find_last(".", true) + local p = filename:sub(1, i - 1):lastof(".", true) if p and extractors[filename:sub(p)] then i = p end -- ok |
