From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:26:15 +0800 Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改 --- PAMapp/node_modules/core-js/modules/es.string.ends-with.js | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.string.ends-with.js b/PAMapp/node_modules/core-js/modules/es.string.ends-with.js index 71bc641..6e29f44 100644 --- a/PAMapp/node_modules/core-js/modules/es.string.ends-with.js +++ b/PAMapp/node_modules/core-js/modules/es.string.ends-with.js @@ -1,5 +1,6 @@ 'use strict'; var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; var toLength = require('../internals/to-length'); var toString = require('../internals/to-string'); @@ -8,8 +9,9 @@ var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic'); var IS_PURE = require('../internals/is-pure'); -// eslint-disable-next-line es/no-string-prototype-endswith -- safe -var $endsWith = ''.endsWith; +// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe +var un$EndsWith = uncurryThis(''.endsWith); +var slice = uncurryThis(''.slice); var min = Math.min; var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith'); @@ -29,8 +31,8 @@ var len = that.length; var end = endPosition === undefined ? len : min(toLength(endPosition), len); var search = toString(searchString); - return $endsWith - ? $endsWith.call(that, search, end) - : that.slice(end - search.length, end) === search; + return un$EndsWith + ? un$EndsWith(that, search, end) + : slice(that, end - search.length, end) === search; } }); -- Gitblit v1.8.0