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