Comparison

util/pluginloader.lua @ 12387:05c250fa335a

Spelling: Fix various spelling mistakes (thanks timeless) Words, sometimes I wonder how they even work Maybe I missed something.
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2022 00:13:56 +0100
parent 12255:a3ad9cf740d6
child 12975:d10957394a3c
comparison
equal deleted inserted replaced
12386:2d3080d02960 12387:05c250fa335a
10 local dir_sep, path_sep = package.config:match("^(%S+)%s(%S+)"); 10 local dir_sep, path_sep = package.config:match("^(%S+)%s(%S+)");
11 local lua_version = _VERSION:match(" (.+)$"); 11 local lua_version = _VERSION:match(" (.+)$");
12 local plugin_dir = {}; 12 local plugin_dir = {};
13 for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do 13 for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do
14 path = path..dir_sep; -- add path separator to path end 14 path = path..dir_sep; -- add path separator to path end
15 path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separaters 15 path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separators
16 plugin_dir[#plugin_dir + 1] = path; 16 plugin_dir[#plugin_dir + 1] = path;
17 end 17 end
18 18
19 local io_open = io.open; 19 local io_open = io.open;
20 local envload = require "util.envload".envload; 20 local envload = require "util.envload".envload;