@ptolemy2002/rgx 4.6.0 → 4.6.1

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/README.md CHANGED
@@ -345,7 +345,7 @@ A function `rgxRepeat` is provided with the same parameters as this class' const
345
345
  ```typescript
346
346
  constructor(token: RGXToken, min?: number, max?: number | null)
347
347
  ```
348
- - `token` (`RGXToken`): The token to repeat. If the token is not already a group (i.e., not an array, `RegExp`, or an `RGXClassToken` with `isGroup` set to `true`), it will be automatically wrapped in an `RGXGroupToken`.
348
+ - `token` (`RGXToken`): The token to repeat. If the token is not already a group (i.e., not an array, `RegExp`, or an `RGXClassToken` with `isGroup` set to `true`), it will be automatically wrapped in an `RGXGroupToken` that is non-capturing.
349
349
  - `min` (`number`, optional): The minimum number of repetitions. Must be >= 0 and <= `max` (when `max` is not `null`). Non-integer values are floored. Defaults to `1`.
350
350
  - `max` (`number | null`, optional): The maximum number of repetitions. Must be >= `min` when not `null`. Non-integer values are floored. Pass `null` for unlimited repetitions. Defaults to `min`.
351
351
 
@@ -38,10 +38,10 @@ class RGXRepeatToken extends base_1.RGXClassToken {
38
38
  if (isGroup)
39
39
  this._token = value;
40
40
  else
41
- this._token = new group_1.RGXGroupToken({}, value);
41
+ this._token = new group_1.RGXGroupToken({ capturing: false }, value);
42
42
  }
43
43
  // We don't need to group wrap this token because the repeater has no
44
- // semantics that would be lost if there are other tokens to the right.
44
+ // semantics that would change if there are other tokens to the right.
45
45
  get rgxGroupWrap() {
46
46
  return false;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptolemy2002/rgx",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",