From 90f25250a74f2454f0d9b809eca2a45ebafb2603 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 24 Jul 2023 15:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=20replace=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E9=83=A8=E5=88=86=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/String.uts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/String.uts b/uni_modules/uts-tests/utssdk/String.uts index d5c6e8c..e433dd7 100644 --- a/uni_modules/uts-tests/utssdk/String.uts +++ b/uni_modules/uts-tests/utssdk/String.uts @@ -171,9 +171,9 @@ export function testString(): Result { expect(string).toEqual(str); return p.join(' - '); } - var newString = str.replace(/([^\d]*)(\d*)([^\w]*)/, replacer); - expect(newString).toEqual("abc - 12345 - #$*%"); - const str1 = 'hello, world'; + // var newString = str.replace(/([^\d]*)(\d*)([^\w]*)/, replacer); + // expect(newString).toEqual("abc - 12345 - #$*%"); + // const str1 = 'hello, world'; // const newString1 = str1.replace(/world/, (match: string, offset:number):string => `JavaScript (${offset})`); // expect(newString1).toEqual('hello, JavaScript (7)'); }) -- GitLab