fix regex from regex memory corruption
before this change, creating a regex from a regex with a named capture, Regexp.new(/(?)/), causes memory to be shared between the two named capture groups which can cause a segfault if the original is GCed.
fix regex from regex memory corruption
before this change, creating a regex from a regex with a named capture, Regexp.new(/(?)/), causes memory to be shared between the two named capture groups which can cause a segfault if the original is GCed.