Fix: include japanese dot as sentence separator

This commit is contained in:
Pieter Vander Vennet 2023-09-26 01:25:28 +02:00
parent 7852829f1b
commit d2c668922b

View file

@ -244,7 +244,7 @@ export class Translation extends BaseUIElement {
continue continue
} }
let txt = this.translations[lng] let txt = this.translations[lng]
txt = txt.replace(/(\.|<br\/>|<br>).*/, "") txt = txt.replace(/(\.|<br\/>|<br>|。).*/, "")
txt = Utils.EllipsesAfter(txt, 255) txt = Utils.EllipsesAfter(txt, 255)
tr[lng] = txt.trim() tr[lng] = txt.trim()
} }