Skip to content

Commit

Permalink
docs: improve matchCurrentVersion docs (#9864)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <[email protected]>
  • Loading branch information
HonkingGoose and viceice authored May 5, 2021
1 parent 06e73fb commit df12fce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/usage/configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,10 @@ Use this field to restrict rules to a particular datasource. e.g.

### matchCurrentVersion

`matchCurrentVersion` can be an exact semver version or a semver range.
`matchCurrentVersion` can be an exact SemVer version or a SemVer range.

This field also supports Regular Expressions which have to begin and end with `/`.
For example, the following will enforce that only `1.*` versions:
This field also supports Regular Expressions which must begin and end with `/`.
For example, the following enforces that only `1.*` versions will be used:

```json
{
Expand All @@ -1380,8 +1380,8 @@ For example, the following will enforce that only `1.*` versions:
}
```

This field also supports a special negated regex syntax for ignoring certain versions.
Use the syntax `!/ /` like the following:
This field also supports a special negated regex syntax to ignore certain versions.
Use the syntax `!/ /` like this:

```json
{
Expand Down

0 comments on commit df12fce

Please sign in to comment.