From 5673769c8ca8dddcf96a6141cb589fae8a24512f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 5 May 2017 12:28:41 -0400 Subject: [PATCH] add back removed rtrim method --- public/src/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/src/utils.js b/public/src/utils.js index 8638d06750..8f2dcb8e87 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -429,5 +429,11 @@ }; } + if (typeof String.prototype.rtrim !== 'function') { + String.prototype.rtrim = function () { + return this.replace(/\s+$/g, ''); + }; + } + return utils; }));