Skip to content

Commit

Permalink
Non-greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Dec 10, 2024
1 parent 89a007e commit b66f213
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(/<note>.+<\/note>/gi, "").replace("</p>", " . ").replace(/(<([^>]+)>)/gi, "").split(". ")[0].trim();
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 b66f213

Please sign in to comment.