From f75aeb65f644169c1d073e7c8d535240a6382c2c Mon Sep 17 00:00:00 2001 From: w30045791 Date: Thu, 14 Aug 2025 21:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9D=83=E5=A4=B4=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E9=80=82=E9=85=8D=E9=97=AD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w30045791 --- build-tools/handleApiFiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/handleApiFiles.js b/build-tools/handleApiFiles.js index 2a5c3e5fbf..a0f63bd7fe 100755 --- a/build-tools/handleApiFiles.js +++ b/build-tools/handleApiFiles.js @@ -546,7 +546,7 @@ function handleNoTagFileInSecondType(sourceFile, outputPath, fullPath) { */ function saveApiByArktsDefinition(sourceFile, fileContent, outputPath) { const regx = /\/\*\*\* if arkts (1.1&)?1.2 \*\/\s*([\s\S]*?)\s*\/\*\*\* endif \*\//g; - const regex = /\/\*\r?\n\s*\*\s*Copyright[\s\S]*?limitations under the License\.\r?\n\s*\*\//g; + const regex = /\/\*\r?\n\s*\*\s*Copyright[\s\S]*?\*\//g; const copyrightMessage = fileContent.match(regex)[0]; const firstNode = sourceFile.statements.find(statement => { return !ts.isExpressionStatement(statement); -- Gitee