mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: add flag to disaable all rate limits (#5570)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user