Commit 0c5f68b
fix: unsafe-to-chain-command: Fix the false positive of 'focus' regex matching 'focused' (#144)
* fix(pencil): illustrate the false positive of 'focus' regex matching 'focused'
* add test to ensure 'focus' does fail, in addition to 'focused' passing
---------
Co-authored-by: Dominic Fraser <[email protected]>1 parent 0a3bd81 commit 0c5f68b
File tree
2 files changed
+10
-1
lines changed- lib/rules
- tests/lib/rules
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| |||
0 commit comments