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/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.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('|')})`,
|
|
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);
|