sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

fix(stdlib): only append flag once to RoRegex #568

Closed lkipke closed 3 years ago

lkipke commented 3 years ago

Change summary

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.