function mergeRegexFlags(flagsA, flagsB) {
			const flagsSet = new Set([...flagsA, ...flagsB]);

			return [...flagsSet].join("");
		}
Merges two regex flags.
@param {string} flagsA The regex flags.
@param {string} flagsB The regex flags.
@returns {string} The merged regex flags.