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/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