Skip to content

Commit 97f52a2

Browse files
authored
Add urls to regex in readme (#18)
1 parent 8894366 commit 97f52a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ This git hooks will look at the current branch (e.g. `type/ABC-123-branch-name`)
5050
These are the default regular expressions that are used by the script on install. They can easily be changed during install using the provided script or manually tweaked.
5151

5252
#### Parsing issue numbers from current branch name
53-
`/[.]*\/([\-\w]*?\-\d+)/`
53+
[`/[.]*\/([\-\w]*?\-\d+)/`](https://regex101.com/r/gf9GMF/1)
5454

5555
| Detects issue number | Does not detect issue number |
5656
| :------------------: | :--------------------------: |
5757
| `feature/ABC-123-test-message` | `abc-123-do-it` |
5858
| `Improvement/XYZ-ABC-321-Crazy-Name` | `simple-branch-name` |
5959

6060
#### Checking commit messages for existing issue numbers
61-
`/^\s*\[[\-\w]*\d\]/`
61+
[`/^\s*\[[\-\w]*\d\]/`](https://regex101.com/r/nZr8LF/1)
6262

6363
| Detects issue number | Does not detect issue number |
6464
| :------------------: | :--------------------------: |
@@ -67,7 +67,7 @@ These are the default regular expressions that are used by the script on install
6767
| ` [XYZ-ABCD-321] Awesome sauce` | ` [Add ABC-123 files]` |
6868

6969
#### Detecting automated commits by git
70-
`/(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)/`
70+
[`/(Merge\sbranch\s\'|\#\sRebase\s|This\sreverts\scommit\s)/`](https://regex101.com/r/Cs2Qag/1)
7171

7272
| Ignores following commits |
7373
| :-------------------: |

0 commit comments

Comments
 (0)