Skip to content

Commit 76d27aa

Browse files
committed
Fix edge case
1 parent f89e6bb commit 76d27aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/luau-lsp-plugin.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ local function GetRelativePath(Path: string, RelativeTo: string)
3737
end
3838

3939
Path = `./{Path}`
40-
Path = string.gsub(Path, "%./%.%.", "..")
40+
Path = string.gsub(Path, "^%./%.%.", "..")
4141

4242
return Path
4343
end

0 commit comments

Comments
 (0)