mol_dump_lib 0.0.970 → 0.0.972

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web.js CHANGED
@@ -3947,14 +3947,14 @@ var $;
3947
3947
  };
3948
3948
  return regexp2;
3949
3949
  }
3950
- static vary(sources) {
3950
+ static vary(sources, flags = 'gsu') {
3951
3951
  const groups = [];
3952
3952
  const chunks = sources.map(source => {
3953
3953
  const regexp = $mol_regexp.from(source);
3954
3954
  groups.push(...regexp.groups);
3955
3955
  return regexp.source;
3956
3956
  });
3957
- return new $mol_regexp(`(?:${chunks.join('|')})`, '', groups);
3957
+ return new $mol_regexp(`(?:${chunks.join('|')})`, flags, groups);
3958
3958
  }
3959
3959
  static optional(source) {
3960
3960
  return $mol_regexp.repeat_greedy(source, 0, 1);