source
flags
TypeError: Cannot supply flags when constructing one RegExp from another