Fixes to dictionary import
This commit is contained in:
parent
1668cc586a
commit
46031374c5
2
edict.go
2
edict.go
@ -32,7 +32,7 @@ func convertEdictEntry(edictEntry jmdict.JmdictEntry) []termSource {
|
|||||||
var entries []termSource
|
var entries []termSource
|
||||||
|
|
||||||
convert := func(reading jmdict.JmdictReading, kanji *jmdict.JmdictKanji) {
|
convert := func(reading jmdict.JmdictReading, kanji *jmdict.JmdictKanji) {
|
||||||
if kanji != nil && hasString(kanji.Expression, reading.Restrictions) {
|
if kanji != nil && reading.Restrictions != nil && !hasString(kanji.Expression, reading.Restrictions) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user