Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fslev committed Jan 18, 2023
1 parent 4789bdf commit 4879532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ Expected boolean: false But got: "lorem"

# <a name="regex"></a> Regular expression support

You can use regular expressions on JSON values:
You can use regular expressions on expected JSON values:
```javascript
String expected = "{\"a\": \".*me.*\"}";
String actual = "{\"a\": \"some text\"}";
JSONCompare.assertMatches(expected, actual); // assertion passes
```
, but also on JSON object fields:
, but also on expected JSON object fields:

```javascript
String expected = "{\".*oba.*\": \"some value\"}";
Expand Down

0 comments on commit 4879532

Please sign in to comment.