Fix import of epwing dictionaries that have a lower-case CATALOGS file
This commit is contained in:
parent
1172bc8b84
commit
81d97dd032
@ -302,6 +302,11 @@ func detectFormat(path string) (string, error) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
return "epwing", nil
|
return "epwing", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, err = os.Stat(filepath.Join(path, "catalogs"))
|
||||||
|
if err == nil {
|
||||||
|
return "epwing", nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", errors.New("unrecognized dictionary format")
|
return "", errors.New("unrecognized dictionary format")
|
||||||
|
Loading…
Reference in New Issue
Block a user