diff --git a/package.json b/package.json index 968593f..e54b0ce 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "theme": "dark" }, "license": "SEE LICENSE IN LICENSE", - "version": "1.1.2", + "version": "1.1.3", "engines": { "vscode": "^1.82.0" }, diff --git a/src/roblox-lsp-plugin.lua b/src/roblox-lsp-plugin.lua index 4121cc5..1fbb10a 100644 --- a/src/roblox-lsp-plugin.lua +++ b/src/roblox-lsp-plugin.lua @@ -32,7 +32,7 @@ local function _GetMatchingModule(MatchName) for FullName, FilePath in next, rojo.SourceMap do local Success, Match = pcall(string.find, FullName, "%." .. MatchName .. "$") if (Success and Match) and _IsoLibrary(FilePath) then - return string.gsub(string.gsub(FullName, "%.([^%.]-[@]%d+%.%d+%.%d+-?%w*)", "[\"%1\"]"), "%.(%a-[ ][^%.]*)", "[\"%1\"]") + return string.gsub(string.gsub(FullName, "%.([^%.]-[@]%d+%.%d+%.%d+-?%w*)", "[\"%1\"]"), "%.(%a-[ -][^%.]*)", "[\"%1\"]") end end end