Commit 56f05df
committed
fix(Yarn): Correct regexes for Yarn releases
The `yarn-dedupe` and `yarn-build` hooks both intended to run on Yarn
upgrades/downgrades. They both used an asterisk (`*`) to match the Yarn
version number as if pre-commit expected a glob pattern rather than a
Python regular expression. Replacing `*` with `.*` would correct this
mistake but also leave the regular expressions overly broad. Prefer
`(\d+\.){2}\d+` to only match version numbers and avoid false positives.1 parent aac4e11 commit 56f05df
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments