Skip to content
This repository was archived by the owner on Nov 11, 2023. It is now read-only.

Commit d182d45

Browse files
committed
hotfix: Fix require not working in some envs
1 parent 70a7740 commit d182d45

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/RegExp.luau

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
--!nocheck
3131
--!optimize 2
3232

33-
local Root = script:FindFirstAncestor("RegEx")
34-
local LuauPolyfill = require(Root.Parent.LuauPolyfill)
33+
local LuauPolyfill = require(script.Parent.Parent.LuauPolyfill)
3534

3635
type Array<T> = LuauPolyfill.Array<T>
3736
type Object = { [string]: any }

wally.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "jsdotlua/regex"
33
description = "https://github.com/jsdotlua/regex-lua"
4-
version = "1.0.1"
4+
version = "1.0.2"
55
license = "MIT"
66
registry = "https://github.com/UpliftGames/wally-index"
77
realm = "shared"

0 commit comments

Comments
 (0)