Skip to content

Commit

Permalink
Remove note docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Dec 10, 2024
1 parent b1ea3a3 commit 89a007e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/aws.permissions.cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function shortDocs(method, docs) {
return "-";
}

let ret = docs[method].replace("</p>", " . ").replace(/(<([^>]+)>)/gi, "").split(". ")[0];
let ret = docs[method].replace(/<note>.+<\/note>/gi, "").replace("</p>", " . ").replace(/(<([^>]+)>)/gi, "").split(". ")[0].trim();

if (ret.substr(ret.length-1) != ".") {
ret += ".";
Expand Down

0 comments on commit 89a007e

Please sign in to comment.