mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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:
@@ -131,10 +131,6 @@ exports.robust_uri_decode = function (str) {
|
||||
return '';
|
||||
};
|
||||
|
||||
exports.rtrim = function (str) {
|
||||
return str.replace(/\s+$/, '');
|
||||
};
|
||||
|
||||
// If we can, use a locale-aware sorter. However, if the browser
|
||||
// doesn't support the ECMAScript Internationalization API
|
||||
// Specification, do a dumb string comparison because
|
||||
|
||||
Reference in New Issue
Block a user