Skip to content

Commit 5fbca77

Browse files
committed
Updated doc
1 parent 0d0a640 commit 5fbca77

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

CHANGELOG.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
This file compiles the list of functional changes for each version. For backward-incompatible API changes, see `UPGRADING.md`.
2+
3+
4+
# 2.0.0
5+
6+
- The final expression does not use a non-capturing group for its first set of alternations. The `s9e\RegexpBuilder\Builder::$standalone` property can be used to control this behaviour.
7+
- Old: `(?:aa|bb(?:cc|dd))
8+
- New: `aa|bb(?:cc|dd)`
9+
10+
- The Java output uses `\uHHHH` instead of `\u{HHHH}`.
11+
12+
- Expressions created from meta-characters are moved to the end of a group.
13+
- Old: `(?:.*|x)`
14+
- New: `(?:x|.*)`
15+
16+
- Strings are sorted *after* surrogate pairs are created.
17+
- Old: `\uD83C\uDD90(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?`
18+
- New: `\uD83C\uDD90(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?`
19+

UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $builder->input->useSurrogates = true;
2626
$builder->output->hexFormat = s9e\RegexpBuilder\Output\HexFormat::LowerCase;
2727
```
2828

29-
The same result can be obtained using a factory. Here we use the JavaScript factory:
29+
The same result can be obtained using a factory, which is the recommended way to create an instance. Here we use the JavaScript factory:
3030

3131
```php
3232
$builder = new s9e\RegexpBuilder\Factory\JavaScript::getBuilder();

0 commit comments

Comments
 (0)