We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e287b commit 30cbd10Copy full SHA for 30cbd10
internal/module/util.go
@@ -45,7 +45,7 @@ func ParsePackageName(moduleName string) (packageName, rest string) {
45
}
46
47
func MangleScopedPackageName(packageName string) string {
48
- if packageName[0] == '@' {
+ if len(packageName) > 0 && packageName[0] == '@' {
49
idx := strings.Index(packageName, "/")
50
if idx == -1 {
51
return packageName
0 commit comments