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/node.js
CHANGED
|
@@ -5184,14 +5184,14 @@ var $;
|
|
|
5184
5184
|
};
|
|
5185
5185
|
return regexp2;
|
|
5186
5186
|
}
|
|
5187
|
-
static vary(sources) {
|
|
5187
|
+
static vary(sources, flags = 'gsu') {
|
|
5188
5188
|
const groups = [];
|
|
5189
5189
|
const chunks = sources.map(source => {
|
|
5190
5190
|
const regexp = $mol_regexp.from(source);
|
|
5191
5191
|
groups.push(...regexp.groups);
|
|
5192
5192
|
return regexp.source;
|
|
5193
5193
|
});
|
|
5194
|
-
return new $mol_regexp(`(?:${chunks.join('|')})`,
|
|
5194
|
+
return new $mol_regexp(`(?:${chunks.join('|')})`, flags, groups);
|
|
5195
5195
|
}
|
|
5196
5196
|
static optional(source) {
|
|
5197
5197
|
return $mol_regexp.repeat_greedy(source, 0, 1);
|