diff --git a/build-tools/handleApiFiles.js b/build-tools/handleApiFiles.js index 2a5c3e5fbf1fdeea349dc0e84e318dee9f571577..a0f63bd7fe94b62a59518165330a6bd50a9837bc 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);