@@ -54,8 +54,8 @@ func ExtractLicenseFromBundle(bundlePath string) (string, string, error) {
5454
5555 // Process .yaml, .yml, and .json files
5656 if ! strings .HasSuffix (header .Name , ".yaml" ) &&
57- ! strings .HasSuffix (header .Name , ".yml" ) &&
58- ! strings .HasSuffix (header .Name , ".json" ) {
57+ ! strings .HasSuffix (header .Name , ".yml" ) &&
58+ ! strings .HasSuffix (header .Name , ".json" ) {
5959 continue
6060 }
6161
@@ -158,7 +158,7 @@ func extractLicenseWithRegex(content string) string {
158158 `"licenseID":\s*"([a-zA-Z0-9]{20,30})"` ,
159159 `"license_id":\s*"([a-zA-Z0-9]{20,30})"` ,
160160 `"license":\s*"([a-zA-Z0-9]{20,30})"` ,
161- `licenseID: ([a-zA-Z0-9]{20,30})` , // YAML format without quotes
161+ `licenseID: ([a-zA-Z0-9]{20,30})` , // YAML format without quotes
162162 `\\nlicenseID: ([a-zA-Z0-9]{20,30})` , // With escaped newline
163163 }
164164
@@ -282,8 +282,8 @@ func ExtractAppSlugFromBundle(bundlePath string) (string, error) {
282282
283283 // Process .yaml, .yml, and .json files
284284 if ! strings .HasSuffix (header .Name , ".yaml" ) &&
285- ! strings .HasSuffix (header .Name , ".yml" ) &&
286- ! strings .HasSuffix (header .Name , ".json" ) {
285+ ! strings .HasSuffix (header .Name , ".yml" ) &&
286+ ! strings .HasSuffix (header .Name , ".json" ) {
287287 continue
288288 }
289289
@@ -306,7 +306,7 @@ func ExtractAppSlugFromBundle(bundlePath string) (string, error) {
306306
307307 // Skip common Kubernetes configmaps
308308 if filename == "kube-root-ca.crt" || strings .HasPrefix (filename , "kube-" ) ||
309- strings .HasPrefix (filename , "kotsadm-" ) {
309+ strings .HasPrefix (filename , "kotsadm-" ) {
310310 continue
311311 }
312312
@@ -327,7 +327,7 @@ func extractAppSlugFromContent(content string) string {
327327 `app_slug:\s*["']?([a-zA-Z0-9\-]+)["']?` ,
328328 `"appSlug":\s*"([a-zA-Z0-9\-]+)"` ,
329329 `"app_slug":\s*"([a-zA-Z0-9\-]+)"` ,
330- `appSlug: ([a-zA-Z0-9\-]+)` , // YAML format without quotes
330+ `appSlug: ([a-zA-Z0-9\-]+)` , // YAML format without quotes
331331 `\\nappSlug: ([a-zA-Z0-9\-]+)` , // With escaped newline
332332 }
333333
@@ -339,4 +339,4 @@ func extractAppSlugFromContent(content string) string {
339339 }
340340
341341 return ""
342- }
342+ }
0 commit comments