in src/RegExpI18n.ts [50:58]
export function createRegExp(pattern: string, flags?: string) {
let newFlags = flags ? flags : '';
if (nativeUSupported) {
if (newFlags.indexOf('u') === -1) {
newFlags += 'u';
}
}
return new RegExp(pattern, newFlags);
}