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/modules/es.escape.js | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.escape.js b/PAMapp/node_modules/core-js/modules/es.escape.js index 9c9b528..20e1b99 100644 --- a/PAMapp/node_modules/core-js/modules/es.escape.js +++ b/PAMapp/node_modules/core-js/modules/es.escape.js @@ -1,11 +1,18 @@ 'use strict'; var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); var toString = require('../internals/to-string'); + +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var exec = uncurryThis(/./.exec); +var numberToString = uncurryThis(1.0.toString); +var toUpperCase = uncurryThis(''.toUpperCase); var raw = /[\w*+\-./@]/; var hex = function (code, length) { - var result = code.toString(16); + var result = numberToString(code, 16); while (result.length < length) result = '0' + result; return result; }; @@ -20,15 +27,15 @@ var index = 0; var chr, code; while (index < length) { - chr = str.charAt(index++); - if (raw.test(chr)) { + chr = charAt(str, index++); + if (exec(raw, chr)) { result += chr; } else { - code = chr.charCodeAt(0); + code = charCodeAt(chr, 0); if (code < 256) { result += '%' + hex(code, 2); } else { - result += '%u' + hex(code, 4).toUpperCase(); + result += '%u' + toUpperCase(hex(code, 4)); } } } return result; -- Gitblit v1.8.0