Creates a new RegExp by adding the given flags to the original RegExp.
flags
import {addRegExpFlags} from '@augment-vir/common';addRegExpFlags(/a/i, 'gm');// output is `/a/igm` Copy
import {addRegExpFlags} from '@augment-vir/common';addRegExpFlags(/a/i, 'gm');// output is `/a/igm`
@augment-vir/common
Creates a new RegExp by adding the given
flags
to the original RegExp.