From 708c02f670ac7b62e32e5bb9f2f5f04b14f35f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 21 Mar 2020 10:28:13 +0100 Subject: [PATCH] chg: String.endsWith() method is already provided by Rhino --- modules/core/String.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/modules/core/String.js b/modules/core/String.js index 207fd332..d655127e 100644 --- a/modules/core/String.js +++ b/modules/core/String.js @@ -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 * @external