Skip to content

Commit

Permalink
Updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Sep 8, 2022
1 parent 0d0a640 commit 5fbca77
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This file compiles the list of functional changes for each version. For backward-incompatible API changes, see `UPGRADING.md`.


# 2.0.0

- 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.
- Old: `(?:aa|bb(?:cc|dd))
- New: `aa|bb(?:cc|dd)`

- The Java output uses `\uHHHH` instead of `\u{HHHH}`.

- Expressions created from meta-characters are moved to the end of a group.
- Old: `(?:.*|x)`
- New: `(?:x|.*)`

- Strings are sorted *after* surrogate pairs are created.
- Old: `\uD83C\uDD90(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?`
- New: `\uD83C\uDD90(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?`

2 changes: 1 addition & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $builder->input->useSurrogates = true;
$builder->output->hexFormat = s9e\RegexpBuilder\Output\HexFormat::LowerCase;
```

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

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

0 comments on commit 5fbca77

Please sign in to comment.