mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
util: Kill off rtrim() helper.
I am 99% sure we can rely on trimRight() and trim() being available in all browsers that we support. I verified in FF. This removes the util dependency from both modules touched here.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
const util = require("./util");
|
||||
// Parsing routine that can be dropped in to message parsing
|
||||
// and formats code blocks
|
||||
//
|
||||
@@ -116,7 +115,7 @@ exports.process_fenced_code = function (content) {
|
||||
if (line === fence) {
|
||||
this.done();
|
||||
} else {
|
||||
lines.push(util.rtrim(line));
|
||||
lines.push(line.trimRight());
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user