Skip to content

Node.js based forum software built for the modern web

utils.js - removed unused *trim shims - it's better to bring them when and if needed

Denis Wolfc614af2cd98c
diff --git a/public/src/utils.js b/public/src/utils.js
index 296cca3e1f..885ab3f765 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -225,25 +225,6 @@
};
}
- if (!String.prototype.ltrim) {
- String.prototype.ltrim = function() {
- return this.replace(/^\s+/, '');
- };
- }
-
- if (!String.prototype.rtrim) {
- String.prototype.rtrim = function() {
- return this.replace(/\s+$/, '');
- };
- }
-
- if (!String.prototype.fulltrim) {
- String.prototype.fulltrim = function() {
- return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g, '').replace(/\s+/g, ' ');
- };
- }
-
-
if ('undefined' !== typeof window) {
window.utils = module.exports;
}