This commit is contained in:
ringabout
2024-11-05 13:14:45 +08:00
parent 8c2ec2a7b0
commit ce1761dff9

View File

@@ -231,7 +231,7 @@ when defined(gcDestructors):
else:
proc destroyRegex(pattern: Regex) =
`=destroy`(pattern.pattern)
pcre.code_free(pattern.pcreObj)
pcre2.code_free(pattern.pcreObj)
`=destroy`(pattern.captureNameToId)
proc getinfo[T](pattern: Regex, opt: uint32): T =