@optique/core 1.0.0-dev.1850 → 1.0.0-dev.1852

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.
@@ -424,6 +424,7 @@ function inheritAnnotations(source, target) {
424
424
  }
425
425
  if (target instanceof RegExp) {
426
426
  const cloned$1 = new RegExp(target);
427
+ cloned$1.lastIndex = target.lastIndex;
427
428
  cloned$1[annotationKey] = annotations;
428
429
  return cloned$1;
429
430
  }
@@ -517,6 +518,7 @@ function injectAnnotations(state, annotations) {
517
518
  }
518
519
  if (state instanceof RegExp) {
519
520
  const cloned$1 = new RegExp(state);
521
+ cloned$1.lastIndex = state.lastIndex;
520
522
  cloned$1[annotationKey] = protectedAnnotations;
521
523
  return cloned$1;
522
524
  }
@@ -423,6 +423,7 @@ function inheritAnnotations(source, target) {
423
423
  }
424
424
  if (target instanceof RegExp) {
425
425
  const cloned$1 = new RegExp(target);
426
+ cloned$1.lastIndex = target.lastIndex;
426
427
  cloned$1[annotationKey] = annotations;
427
428
  return cloned$1;
428
429
  }
@@ -516,6 +517,7 @@ function injectAnnotations(state, annotations) {
516
517
  }
517
518
  if (state instanceof RegExp) {
518
519
  const cloned$1 = new RegExp(state);
520
+ cloned$1.lastIndex = state.lastIndex;
519
521
  cloned$1[annotationKey] = protectedAnnotations;
520
522
  return cloned$1;
521
523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1850+6944c47b",
3
+ "version": "1.0.0-dev.1852+6dd8742f",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",