aboutsummaryrefslogtreecommitdiff
path: root/public/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 16213998..ebb05d2d 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -650,3 +650,7 @@ function initRepoSetting() {
}
});
})(jQuery);
+
+String.prototype.endsWith = function(suffix) {
+ return this.indexOf(suffix, this.length - suffix.length) !== -1;
+};