mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #3754
This commit is contained in:
@@ -381,6 +381,12 @@
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof String.prototype.rtrim != 'function') {
|
||||
String.prototype.rtrim = function() {
|
||||
return this.replace(/\s+$/g, '');
|
||||
};
|
||||
}
|
||||
|
||||
if ('undefined' !== typeof window) {
|
||||
window.utils = module.exports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user