Skip to content

Commit

Permalink
chore: fix selene
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadev-0 committed Apr 3, 2024
1 parent 5c0cee6 commit 5afae72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/std/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local function detectRuntime(): Runtime?
return require("./default-runtimes/roblox")
end

if _VERSION:sub(1, 5):lower() == "lune " then
if string.sub(_VERSION, 1, 5):lower() == "lune " then
return require("./default-runtimes/lune")
end

Expand Down
2 changes: 1 addition & 1 deletion packages/std/init.test.luau
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end)
describe("setRuntime", function()
test("sets the runtime", function()
local luneRuntime = std.runtime
assert(luneRuntime ~= nil)
assert(luneRuntime ~= nil, "should have runtime")

local runtime = std.defineRuntime({ name = "test", libs = {} })

Expand Down
2 changes: 2 additions & 0 deletions selene.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ std = "luau+roblox"

[config]
global_usage = { ignore_pattern = "UTIL_TARGET" }

[lints]
bad_string_escape = "allow"
shadowing = "allow"

0 comments on commit 5afae72

Please sign in to comment.