diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-11 10:37:31 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-11 10:37:31 -0400 |
commit | 2c73ced0db2a3dc0402dc0cdc78538370bbf9e71 (patch) | |
tree | e292a8d87b66ab31a00b1b2a115f071370d1d4ab /public | |
parent | f68e279150b8c58a0c5ffeea44fe1a613031e58b (diff) |
Fix #173
Diffstat (limited to 'public')
-rw-r--r-- | public/js/app.js | 4 |
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; +}; |