]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/jslib.js
Merge.
[irc/quakenet/qwebirc.git] / js / jslib.js
index 52e3550023af49aa37f6ea23b1fae053de633c6b..4d7c2d09365452dcd9dd39b8ccdacb2fa5f92628 100644 (file)
@@ -223,6 +223,10 @@ String.prototype.startsWith = function(what) {
   return this.substring(0, what.length) == what;
 }
 
+String.prototype.endsWith = function(what) {
+  return this.substring(this.length - what.length, this.length) == what;
+};
+
 /* NOT cryptographically secure! */
 qwebirc.util.randHexString = function(numBytes) {
   var getByte = function() {