Commit 826d0f5
committed
fix: preserve original name for warning comparison in transform_string_function_style
The function was replacing spaces with underscores before comparing whether
the name had been modified, so space-only transformations never triggered
the warning. This preserves the original name and compares the final
lowercased result to properly warn on all transformations.
Closes #2951
Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>1 parent 82eaf15 commit 826d0f5
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
14 | | - | |
| 17 | + | |
15 | 18 | | |
16 | | - | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
0 commit comments