node build fixed
This commit is contained in:
14
seanime-2.9.10/internal/manga/providers/helpers.go
Normal file
14
seanime-2.9.10/internal/manga/providers/helpers.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package manga_providers
|
||||
|
||||
import "strings"
|
||||
|
||||
// GetNormalizedChapter returns a normalized chapter string.
|
||||
// e.g. "0001" -> "1"
|
||||
func GetNormalizedChapter(chapter string) string {
|
||||
// Trim padding zeros
|
||||
unpaddedChStr := strings.TrimLeft(chapter, "0")
|
||||
if unpaddedChStr == "" {
|
||||
unpaddedChStr = "0"
|
||||
}
|
||||
return unpaddedChStr
|
||||
}
|
||||
Reference in New Issue
Block a user