(mangledName string)
| 79 | } |
| 80 | |
| 81 | func GetPackageNameFromTypesPackageName(mangledName string) string { |
| 82 | withoutAtTypePrefix := strings.TrimPrefix(mangledName, "@types/") |
| 83 | if withoutAtTypePrefix != mangledName { |
| 84 | return UnmangleScopedPackageName(withoutAtTypePrefix) |
| 85 | } |
| 86 | return mangledName |
| 87 | } |
| 88 | |
| 89 | func ComparePatternKeys(a, b string) int { |
| 90 | aPatternIndex := strings.Index(a, "*") |
no test coverage detected