mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Add a trailing quote if one is missing in a Say action.
This commit is contained in:
parent
f3fc636e10
commit
703ed00387
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ function sanitizeText(text) {
|
|||
text = text.replace(/^\s*>\s/, "")
|
||||
text = text.replace(/says? "/, "")
|
||||
text = text.replace(/"\n$/, "")
|
||||
if (text.split('"').length - 1 % 2 == 1) text += '"'
|
||||
} else if (/^\s*>\s.*/.test(text)) {
|
||||
text = text.replace(/^\s*>\s/, "")
|
||||
text = text.replace(/\.?\n$/, "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue