Skip to content

Commit

Permalink
Replace re with text code blocks in README
Browse files Browse the repository at this point in the history
  • Loading branch information
trallnag committed Jan 1, 2025
1 parent f219074 commit 0921bba
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 @@ -22,7 +22,7 @@ pre-commit run --all-files

The hook identifiers are extracted from the config using the following regex:

```re
```text
^ *(?:- )?id: [\'\"]?(?P<hook>[a-z0-9-]+)[\'\"]?(?: +#.*)?$
```

Expand Down Expand Up @@ -50,7 +50,7 @@ repos:
The hook identifiers are extracted from the config using the following regex,
where `<tags>` is replaced by the given tags:

```re
```text
^ *(?:- )?id: [\'\"]?(?P<hook>[a-z0-9-]+)[\'\"]?.*#.*
[Tt]ags ?[:=] ?[0-9a-z, ]*\b(<tags>)\b[0-9a-z, ]*\..*$
```
Expand Down

0 comments on commit 0921bba

Please sign in to comment.