diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js index f0d2cc130..409b259d0 100644 --- a/client/lib/inlinedform.js +++ b/client/lib/inlinedform.js @@ -49,7 +49,8 @@ InlinedForm = BlazeComponent.extendComponent({ getValue() { const input = this.find('textarea,input[type=text]'); - return this.isOpen.get() && input && input.value.replaceAll(/\s +$/gm, ''); + // \s without \n + unicode (https://developer.mozilla.org/de/docs/Web/JavaScript/Guide/Regular_Expressions#special-white-space) + return this.isOpen.get() && input && input.value.replaceAll(/[ \f\r\t\v]+$/gm, ''); }, events() {