eslint: Fix unicorn/prefer-trim-start-end.

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-trim-start-end.md

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-10-07 02:55:58 -07:00 committed by Tim Abbott
parent 78ccb15d9e
commit 8098acb63c
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ function get_or_set(fieldname, keep_leading_whitespace) {
if (newval !== undefined) { if (newval !== undefined) {
elem.val(newval); elem.val(newval);
} }
return keep_leading_whitespace ? oldval.trimRight() : oldval.trim(); return keep_leading_whitespace ? oldval.trimEnd() : oldval.trim();
}; };
} }

View File

@ -178,7 +178,7 @@ export function process_fenced_code(content) {
if (line === fence) { if (line === fence) {
this.done(); this.done();
} else { } else {
lines.push(line.trimRight()); lines.push(line.trimEnd());
} }
}, },