diff --git a/build-tools/delete_systemapi_plugin.js b/build-tools/delete_systemapi_plugin.js index 1eb44f58335fa77da13768d5911b22354893a54e..ac7a6d30ea208bd09503243753cec8b43ba50eff 100644 --- a/build-tools/delete_systemapi_plugin.js +++ b/build-tools/delete_systemapi_plugin.js @@ -280,7 +280,9 @@ function deleteSystemApi(url) { exports.deleteSystemApi = deleteSystemApi; function isSystemapi(node) { - const notesStr = node.getFullText().replace(node.getText(), "").replace(/[\s]/g, ""); + const notesContent = node.getFullText().replace(node.getText(), "").replace(/[\s]/g, ""); + const notesArr = notesContent.split(/\/\*\*/); + const notesStr = notesArr[notesArr.length - 1]; if (notesStr.length !== 0) { if (ts.isFunctionDeclaration(node) || ts.isMethodSignature(node) || ts.isMethodDeclaration(node)) { lastNodeName = node.name && node.name.escapedText ? node.name.escapedText.toString() : "";