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.d.ts +1 -1
- package/node.deps.json +1 -1
- package/node.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.js +2 -2
- package/web.js.map +1 -1
- package/web.mjs +2 -2
package/web.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('|')})`,
|
|
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);
|