mol_view_tree2_lib 1.0.141 → 1.0.142

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/node.mjs CHANGED
@@ -1729,14 +1729,14 @@ var $;
1729
1729
  };
1730
1730
  return regexp2;
1731
1731
  }
1732
- static vary(sources) {
1732
+ static vary(sources, flags = 'gsu') {
1733
1733
  const groups = [];
1734
1734
  const chunks = sources.map(source => {
1735
1735
  const regexp = $mol_regexp.from(source);
1736
1736
  groups.push(...regexp.groups);
1737
1737
  return regexp.source;
1738
1738
  });
1739
- return new $mol_regexp(`(?:${chunks.join('|')})`, '', groups);
1739
+ return new $mol_regexp(`(?:${chunks.join('|')})`, flags, groups);
1740
1740
  }
1741
1741
  static optional(source) {
1742
1742
  return $mol_regexp.repeat_greedy(source, 0, 1);
package/node.test.js CHANGED
@@ -1720,14 +1720,14 @@ var $;
1720
1720
  };
1721
1721
  return regexp2;
1722
1722
  }
1723
- static vary(sources) {
1723
+ static vary(sources, flags = 'gsu') {
1724
1724
  const groups = [];
1725
1725
  const chunks = sources.map(source => {
1726
1726
  const regexp = $mol_regexp.from(source);
1727
1727
  groups.push(...regexp.groups);
1728
1728
  return regexp.source;
1729
1729
  });
1730
- return new $mol_regexp(`(?:${chunks.join('|')})`, '', groups);
1730
+ return new $mol_regexp(`(?:${chunks.join('|')})`, flags, groups);
1731
1731
  }
1732
1732
  static optional(source) {
1733
1733
  return $mol_regexp.repeat_greedy(source, 0, 1);