feat: add flag to disaable all rate limits (#5570)

This commit is contained in:
Dean Sheather
2023-01-05 12:05:20 -06:00
committed by GitHub
parent ab7e676b54
commit 5a968e2f93
16 changed files with 292 additions and 110 deletions

View File

@ -45,7 +45,7 @@
return "";
}
let description = p.description.replaceAll("<br><br>", "\n").replaceAll("<br>", " ");
let description = p.description.replace(/<br><br>/g, "\n").replace(/<br>/g, " ");
const words = description.split(' ');
if (words.length == 0) {
return "";
@ -53,8 +53,8 @@
const countUppercase = words[0].length - words[0].replace(/[A-Z]/g, '').length;
if (countUppercase > 1) {
let displayName = p.displayName.replaceAll("» **additionalProperties**", "It");
displayName = displayName.charAt(0).toUpperCase() + displayName.replaceAll("_", " ").toLowerCase().slice(1);
let displayName = p.displayName.replace(/» \*\*additionalProperties\*\*/g, "It");
displayName = displayName.charAt(0).toUpperCase() + displayName.replace(/_/g, " ").toLowerCase().slice(1);
description = displayName + " " + words.slice(1).join(' ');
}
return correctLetterCase(description);