Commit 8525f59
committed
minor #37 [Stimulus] Extract a normalizeIdentifier helper (Kocal)
This PR was merged into the main branch.
Discussion
----------
[Stimulus] Extract a normalizeIdentifier helper
| Q | A
| -------------- | ---
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Documentation? | no
| Issues | -
| License | MIT
The `_` -> `-` and `/` -> `--` Stimulus identifier normalization was inlined in both `thirdPartyIdentifier` and `localIdentifier`. This pulls it out into a small `normalizeIdentifier` helper so the rule lives in one place.
Pure refactor, no behavior change. The explicit user/package-name branches keep their underscores (only the slash separator is collapsed there), so those paths are left exactly as they were.
Commits
-------
bee3ef9 [Stimulus] Extract normalizeIdentifier helper1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| 142 | + | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | | - | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | | - | |
| 205 | + | |
200 | 206 | | |
0 commit comments