Skip to content

Commit

Permalink
fix: fix some string.gsub calls to method style calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsukina-7mochi committed Nov 24, 2023
1 parent 494f32f commit 16d565e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/template.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ end
---@return string
---@overload fun(moduleName: string): nil
local function bundlerSearcher(moduleName)
moduleName = moduleName.gsub(moduleName, "%.", pathSeparator)
moduleName = moduleName:gsub("%.", pathSeparator)

local templates = split(package.path, templateSeparator)
for _, template in ipairs(templates) do
local path = template.gsub(template, substitutionPoint, moduleName)
local path = template:gsub(substitutionPoint, moduleName)
local resolvedPath = resolvePath(path)
local loader = package.bundleLoader[resolvedPath]
if loader ~= nil and loader.loader ~= nil then
Expand Down

0 comments on commit 16d565e

Please sign in to comment.