Skip to content

Regex captures not working #321

@blystii

Description

@blystii

I tried the example on Lune's official docs page, even with the latest version that I just installed and it doesn't work

local Regex = require("@lune/regex")
local re = Regex.new("hello")

if re:isMatch("hello, world!") then
	print("Matched!") -- This works
end

local caps = re:captures("hello, world! hello, again!")

print(#caps) -- This outputs 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions