chg: String.endsWith() method is already provided by Rhino
This commit is contained in:
parent
9f49ad80b9
commit
708c02f670
1 changed files with 0 additions and 15 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue