From a65742a884223451324fcab5cfaeb6ebdfe32ec1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 6 Mar 2021 15:49:07 -0500 Subject: Fix furigana distribution when reading starts with expression, but has remainder characters (#1496) --- test/test-japanese.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test-japanese.js b/test/test-japanese.js index 1a4fc494..e9fb9c90 100644 --- a/test/test-japanese.js +++ b/test/test-japanese.js @@ -707,6 +707,13 @@ function testDistributeFurigana() { {text: 'サボ', furigana: ''}, {text: 'る', furigana: 'ル'} ] + ], + // Reading starts with expression, but has remainder characters + [ + ['シック', 'シック・ビルしょうこうぐん'], + [ + {text: 'シック', furigana: 'シック・ビルしょうこうぐん'} + ] ] ]; -- cgit v1.2.3