for coded
diff --git a/src/utils/generateKeyValueList.ts b/src/utils/generateKeyValueList.ts
index 7f77bef..b3e276f 100644
--- a/src/utils/generateKeyValueList.ts
+++ b/src/utils/generateKeyValueList.ts
@@ -1,6 +1,11 @@
-function capitalize(s)
-{
- return s[0].toUpperCase() + s.slice(1);
+const forceCaps = [
+ "ID",
+ "NSFW"
+]
+
+export function capitalize(s: string) {
+ s = s.replace(/([A-Z])/g, ' $1');
+ return forceCaps.includes(s.toUpperCase()) ? s.toUpperCase() : s[0].toUpperCase() + s.slice(1).toLowerCase();
}
function keyValueList(data) {