From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/core-js/internals/string-trim.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/string-trim.js b/PAMapp/node_modules/core-js/internals/string-trim.js index 0b4899f..7fc1655 100644 --- a/PAMapp/node_modules/core-js/internals/string-trim.js +++ b/PAMapp/node_modules/core-js/internals/string-trim.js @@ -1,7 +1,9 @@ +var uncurryThis = require('../internals/function-uncurry-this'); var requireObjectCoercible = require('../internals/require-object-coercible'); var toString = require('../internals/to-string'); var whitespaces = require('../internals/whitespaces'); +var replace = uncurryThis(''.replace); var whitespace = '[' + whitespaces + ']'; var ltrim = RegExp('^' + whitespace + whitespace + '*'); var rtrim = RegExp(whitespace + whitespace + '*$'); @@ -10,8 +12,8 @@ var createMethod = function (TYPE) { return function ($this) { var string = toString(requireObjectCoercible($this)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); + if (TYPE & 1) string = replace(string, ltrim, ''); + if (TYPE & 2) string = replace(string, rtrim, ''); return string; }; }; -- Gitblit v1.8.0