Limit max word size for TTS

This commit is contained in:
Kovid Goyal
2020-12-11 07:23:55 +05:30
parent dc5300be83
commit c80acf0aed
+1 -1
View File
@@ -45,7 +45,7 @@ def index_for_node(node, node_list):
def tts_word_regex():
return /[\p{Letter}\p{Mark}\p{Number}]+/gu
return /[\p{Letter}\p{Mark}\p{Number}]{1,50}/gu
def tts_data(text_node, offset):