Commit f019963
committed
refactor(yarn2): Simplify extracting the module name
The module name may contain at most one '@'. If it does, the '@' is
always the first character. So, use `startIndex=1` to find the
en marker '@' of the module name.
Signed-off-by: Frank Viernau <[email protected]>1 parent 7bec2dc commit f019963
File tree
1 file changed
+2
-2
lines changed- plugins/package-managers/node/src/main/kotlin/yarn2
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments