string of RegExp flags
The processed string of regex flags.
This function does not validate if the input string is a valid regex flags string. It only removes duplicates and non-regex characters.
This function does not throw any exceptions.
strSortChars, strRemoveDuplicateChars
regexFixFlags('ggim') // 'gim'
regexFixFlags('?gim*') // 'gim'
Generated using TypeDoc
Takes a string of RegExp flags and returns a string guaranteed to be valid.