Unfortunately, Regexp.union generates regex that aren't js-compatible.