跳至主要內容

RegExp s (dotAll) 标记

小于 1 分钟featurees-proposalmissing-example

RegExp s (dotAll) 标记open in new window

类型

// patched for support `RegExp` dotAll (`s`) flag:
interface RegExp {
  new (pattern: RegExp | string, flags?: string): RegExp;
  exec(): RegExpExecResult | null;
  readonly dotAll: boolean;
  readonly flags: string;
}

interface RegExpExecResult extends Array<string> {
  index: number;
  input: string;
}

入口点

core-js/proposals/regexp-dotall-flag