diff --git a/build-tools/handleApiFiles.js b/build-tools/handleApiFiles.js index 1e4a772e077bef1b9d01f4eb74c1d72b5d20d7f1..8521bbbb1517fbcd9ece05ca161c005b09417887 100755 --- a/build-tools/handleApiFiles.js +++ b/build-tools/handleApiFiles.js @@ -522,7 +522,7 @@ function handlehasTagFile(sourceFile, outputPath) { */ function handleNoTagFileInSecondType(sourceFile, outputPath, fullPath) { dirType = DirType.typeThree; - const arktsTagRegx = /\*\s*(@arkts\s(1.1&)?1.2|@since\s\S*\s(dynamic&)?static)\s*(\r|\n)\s*/g; + const arktsTagRegx = /\*\s*(@arkts\s(1.1&)?1.2|@since\s\S*\s(staticonly|(dynamic&)?static))\s*(\r|\n)\s*/g; const fileContent = sourceFile.getFullText(); let newContent = ''; // API未标@arkts 1.2或@arkts 1.1&1.2标签,删除文件