docs: function regexpFlags(regexp) {
    let flags = regexp.flags
    if (flags === undefined) {
      flags = ''
      if (regexp.ignoreCase) flags += 'i'
      if (regexp.global) flags += 'g'
      if (regexp.multiline) flags += 'm'
    }
    return flags
  }