Substitute macros in text to classify

This commit is contained in:
Cohee 2024-05-06 22:02:13 +03:00
parent 12eabd167d
commit 5e7c214c89
1 changed files with 2 additions and 2 deletions

View File

@ -972,8 +972,8 @@ function sampleClassifyText(text) {
return text; return text;
} }
// Remove asterisks and quotes // Replace macros, remove asterisks and quotes
let result = text.replace(/[*"]/g, ''); let result = substituteParams(text).replace(/[*"]/g, '');
const SAMPLE_THRESHOLD = 500; const SAMPLE_THRESHOLD = 500;
const HALF_SAMPLE_THRESHOLD = SAMPLE_THRESHOLD / 2; const HALF_SAMPLE_THRESHOLD = SAMPLE_THRESHOLD / 2;