From 63e2f87e716694c58d771640db0a14f32f5f1040 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 16 Jul 2023 12:34:50 +0200 Subject: use character-by-character diffs for reading tests + skip split reading checks --- api/sentence.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'api') diff --git a/api/sentence.ts b/api/sentence.ts index 2311913..f1d5521 100644 --- a/api/sentence.ts +++ b/api/sentence.ts @@ -61,6 +61,12 @@ export default class Sentence extends APIBase { }, ""); } + get reading(): string { + return this.words.reduce((out, word) => { + return out + word.reading; + }, ""); + } + public async forceUpdate() { // unresolve ready this.ready = new Promise(res => this._resolveReady = res); -- cgit v1.2.3