We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac707e8 + 16f24f5 commit 4f30075Copy full SHA for 4f30075
frontend/express/public/javascripts/countly/countly.common.js
@@ -5186,6 +5186,16 @@
5186
}
5187
return _.unescape(text || df).replace(/'/g, "'");
5188
};
5189
+
5190
+ /**
5191
+ * Remove spaces, tabs, and newlines from the start and end of the string
5192
+ * @param {String} str - Arbitrary string
5193
+ * @returns {String} Trimmed string
5194
+ */
5195
+ countlyCommon.trimWhitespaceStartEnd = function(str) {
5196
+ str = str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
5197
+ return str;
5198
+ };
5199
5200
5201
window.CommonConstructor = CommonConstructor;
0 commit comments