Skip to content

Commit 94ef0c4

Browse files
committed
Merge branch 'master' of github.com:wolfendale/scalacheck-gen-regexp
2 parents c6a9f6f + 33d1456 commit 94ef0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val generator: Gen[String] = RegexpGen.from("[1-9]\\d?(,\\d{3})+")
3232
| Default Classes | `\w`, `\d`, `\S`, `.` | These are treated as predefined character classes |
3333
| Quantifiers | `a?`, `b+`, `c*`, `d{3}`, `e{4,5}`, `f{5,}` | These use `Gen.listOfN` to create sized lists of the preceding term |
3434
| Groups | `(abc)`, `(?:def)` | Backreferences are not supported, groups can only be used for grouping terms |
35-
| Alternates | `abc`, `a(bc)d` | Alternates are also transformed with `Gen.oneOf` |
35+
| Alternates | `a\|b\|c`, `a(b\|c)d` | Alternates are also transformed with `Gen.oneOf` |
3636
| Boundaries | `^`, `$`, `\b` | Although these will be parsed they do not modify the generator output |
3737

3838
##### Unsupported syntax
@@ -60,4 +60,4 @@ cases and in certain circumstances your tests may fail. Try to refactor out nega
6060
* In character classes each option is given equal weighting. If you'd prefer to weight a
6161
particular entry you can add it multiple times, this is made easier with string interpolation:
6262
```s"[${"a-z"*5}\s]"```. In the example case the generator is 5 times more likely to generate
63-
an alpha character than a space.
63+
an alpha character than a space.

0 commit comments

Comments
 (0)