From 43a8d1a24dc9295fce14fd1ad97607761498eb94 Mon Sep 17 00:00:00 2001 From: hkc <779543729@qq.com> Date: Mon, 22 Jun 2020 21:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=BC=95=E5=8F=B7?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=88=90=E5=AF=B9=E6=9B=BF=E6=8D=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/util.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/util.js b/src/util/util.js index 5965dc8..a9b55ee 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -1,13 +1,13 @@ /* * Tencent is pleased to support the open source community by making WeUI.js available. -* +* * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. -* +* * Licensed under the MIT License (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at -* +* * http://opensource.org/licenses/MIT -* +* * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and @@ -294,7 +294,7 @@ objectAssign($, { tpl .replace(/[\r\t\n]/g, ' ') .split('<%').join('\t') - .replace(/((^|%>)[^\t]*)'/g, '$1\r') + .replace(/(?<=(^|%>)[^\t]*)'/g, '\r') .replace(/\t=(.*?)%>/g, '\',$1,\'') .split('\t').join('\');') .split('%>').join('p.push(\'')