|
|
@ -416,6 +416,7 @@ export class WaniKani { |
|
|
|
sentenceCloze?: string; |
|
|
|
}, |
|
|
|
opts: { |
|
|
|
prependEnglishCloze?: boolean; |
|
|
|
overwrite?: boolean; |
|
|
|
} = {}, |
|
|
|
) { |
|
|
@ -504,6 +505,7 @@ export class WaniKani { |
|
|
|
const notJa = '[^\\p{sc=Han}\\p{sc=Katakana}\\p{sc=Hiragana}]+'; |
|
|
|
|
|
|
|
if ( |
|
|
|
opts.prependEnglishCloze && |
|
|
|
clozeSent && |
|
|
|
!new RegExp( |
|
|
|
`(^${notJa}<br/?>|<br/?><br/?>${notJa}$)`, |
|
|
|