Commit db04879
committed
refactor: inline truncatedId and simplify trim regex
- Inline truncatedId() into AliasMap.set(): single-use private function
with simple logic, inlining removes unnecessary indirection
- Simplify part.replace(/^_/, '').replace(/_$/, '') to part.replace(/^_|_$/g, '')1 parent 3e8fa3d commit db04879
2 files changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 4 | | |
14 | 5 | | |
15 | 6 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
| |||
0 commit comments