mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 09:16:32 +01:00
Extend rplanguage sentence detection. Resolve #2075
This commit is contained in:
parent
4c648d80f8
commit
f5917378d2
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ class LanguageHandler(DefaultScript):
|
|||
# find out what preceeded this word
|
||||
wpos = match.start()
|
||||
preceeding = match.string[:wpos].strip()
|
||||
start_sentence = preceeding.endswith(".") or not preceeding
|
||||
start_sentence = preceeding.endswith((".", "!", "?")) or not preceeding
|
||||
|
||||
# make up translation on the fly. Length can
|
||||
# vary from un-translated word.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue