okay great my code works there’s just a bug in safari regular expressions
; {const re = /fails/uyre.lastIndex = "this test ".length"this test fails".replace(re, "succeeds")}
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
; {
const re = /fails/uy
re.lastIndex = "this test ".length
"this test fails".replace(re, "succeeds")
}