Previously, if you tried to call RoRegex#matchAll or RoRegex:replaceAll multiple times using the same RoRegex instance, a Javascript error would be thrown because the g flag appeared multiple times in the Javascript regex constructor. This PR fixes that.
Change summary
Previously, if you tried to call
RoRegex#matchAll
orRoRegex:replaceAll
multiple times using the sameRoRegex
instance, a Javascript error would be thrown because theg
flag appeared multiple times in the Javascript regex constructor. This PR fixes that.