RegExp s (dotAll) flag

Specification
Proposal repo

Modules

es.regexp.constructor, es.regexp.dot-all, es.regexp.exec and es.regexp.flags.

Built-ins signatures

// patched to support the `RegExp` dotAll (`s`) flag:
class RegExp {
  constructor(pattern: RegExp | string, flags?: string): RegExp;
  exec(string: string): Array<string | undefined> | null;
  readonly attribute dotAll: boolean;
  readonly attribute flags: string;
}

Entry points

core-js/proposals/regexp-dotall-flag
core-js/es|stable|actual|full/regexp/constructor
core-js/es|stable|actual|full/regexp/dot-all
core-js(-pure)/es|stable|actual|full/regexp/flags

Examples

RegExp('.', 's').test('\n'); // => true
RegExp('.', 's').dotAll;     // => true