chg: String.endsWith() method is already provided by Rhino

This commit is contained in:
Tobi Schäfer 2020-03-21 10:28:13 +01:00
parent 9f49ad80b9
commit 708c02f670

View file

@ -398,21 +398,6 @@ String.prototype.md5 = function() {
}; };
/**
* function returns true if the string ends with
* the string passed as argument
* @external
* @memberof {String}
* @param String string pattern to search for
* @return Boolean true in case it matches the end of
* the string, false otherwise
*/
String.prototype.endsWith = function(str) {
var javaObj = new java.lang.String(this);
return javaObj.endsWith(str);
};
/** /**
* fills a string with another string up to a desired length * fills a string with another string up to a desired length
* @external * @external