mmadfox / go-crx3

Chrome browser extension tools. Provides a set of tools packing, unpacking, zip, unzip, download, etc.
Apache License 2.0
27 stars 8 forks source link

File name interception problem after decompression #1

Closed qclucky7 closed 11 months ago

qclucky7 commented 2 years ago

After I decompress the file name will be intercepted more。 Originally from golang strings.TrimRight()

println(strings.TrimRight("CaptainBIapp.zip", ".zip")) //CaptainBIa

Because I need the unzipped file name, but the api return value is not provided. The file name was intercepted in the previous step, which caused the file name to not match, and the file could not be read.

qclucky7 commented 2 years ago
println(strings.TrimSuffix("CaptainBIapp.zip", ".zip")) //CaptainBIapp

is right

mmadfox commented 1 year ago

Hello, I was in a different context and apologize for the delayed response. I will fix it soon.