Commit adc974a
fix(no-output-on-prefix): fix regular expression (#674)
* fix(no-output-on-prefix): fix regular expression
this commit fixes incorrect behavior when memberName contains 'on' suffix in the word, for example selectionChanged.
```
/on((?![a-z])|(?=$))/.test('selectionChanged');
// true
/^on((?![a-z])|(?=$))/.test('selectionChanged');
// false
```
* test(no-output-on-prefix): add more test cases
* style(no-output-on-prefix): fix misspellings1 parent 28bd75a commit adc974a
File tree
2 files changed
+11
-1
lines changed- src
- test
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
71 | 81 | | |
72 | 82 | | |
0 commit comments