Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/prefer-trim-start-end.
Anders Kaseorg8098acb63c6a
diff --git a/static/js/compose_state.js b/static/js/compose_state.jsindex 962aae1eeb5..50867a1c4ee 100644--- a/static/js/compose_state.js+++ b/static/js/compose_state.js@@ -34,7 +34,7 @@ function get_or_set(fieldname, keep_leading_whitespace) {if (newval !== undefined) {elem.val(newval);}- return keep_leading_whitespace ? oldval.trimRight() : oldval.trim();+ return keep_leading_whitespace ? oldval.trimEnd() : oldval.trim();};}diff --git a/static/shared/js/fenced_code.js b/static/shared/js/fenced_code.jsindex 48bbd336485..b65f42a8176 100644--- a/static/shared/js/fenced_code.js+++ b/static/shared/js/fenced_code.js@@ -178,7 +178,7 @@ export function process_fenced_code(content) {if (line === fence) {this.done();} else {- lines.push(line.trimRight());+ lines.push(line.trimEnd());}},