mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
add back removed rtrim method
This commit is contained in:
@@ -429,5 +429,11 @@
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof String.prototype.rtrim !== 'function') {
|
||||
String.prototype.rtrim = function () {
|
||||
return this.replace(/\s+$/g, '');
|
||||
};
|
||||
}
|
||||
|
||||
return utils;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user