added tests, reorganized Parse() by dismantling parsing and processing

This commit is contained in:
2025-01-13 18:45:53 +01:00
parent a1de6b9d57
commit 5f8b6872ef
9 changed files with 217 additions and 39 deletions

View File

@@ -301,7 +301,7 @@ func (conf *Config) PrepareTransposers() error {
}
for _, transposer := range conf.Transposers {
parts := strings.Split(transposer, "/")
parts := strings.Split(transposer, string(transposer[0]))
if len(parts) != 4 {
return fmt.Errorf("transposer function must have the format /regexp/replace-string/")
}