aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-07-16 12:34:50 +0200
committerlonkaars <loek@pipeframe.xyz>2023-07-16 12:34:50 +0200
commit63e2f87e716694c58d771640db0a14f32f5f1040 (patch)
tree9deac224129391731260382977ab450a5ed91f8a /api
parent8e179a43e909ce4683f753a90bb3505630f05ad8 (diff)
use character-by-character diffs for reading tests + skip split reading checks
Diffstat (limited to 'api')
-rw-r--r--api/sentence.ts6
1 files changed, 6 insertions, 0 deletions
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);