mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
code rabbit suggestion
This commit is contained in:
@@ -79,7 +79,10 @@ try {
|
||||
'Enhancements',
|
||||
'Maintenance',
|
||||
];
|
||||
const category = validCategories.find(cat => rawContent.includes(cat));
|
||||
const lowerContent = rawContent.toLowerCase();
|
||||
const category = validCategories.find(cat =>
|
||||
lowerContent.includes(cat.toLowerCase()),
|
||||
);
|
||||
if (category) {
|
||||
console.log('OpenAI categorized as:', category);
|
||||
setOutput('result', category);
|
||||
|
||||
Reference in New Issue
Block a user