This commit is contained in:
张成
2026-02-28 13:51:17 +08:00
parent 58c9d64e55
commit 0483d6d023
7 changed files with 76 additions and 234 deletions

View File

@@ -199,11 +199,13 @@ class KeywordMatcher {
* @param {Function} textExtractor - 文本提取函数 (job) => string
* @returns {Array} 匹配通过的职位(带匹配信息)
*/
static filterJobs(jobs, config, textExtractor = (job) => `${job.name || ''} ${job.description || ''}`) {
static filterJobs(jobs, config) {
if (!jobs || jobs.length === 0) {
return [];
}
const textExtractor=(job) => `${job.jobTitle || ''} ${job.companyIndustry || ''}`;
const filtered = [];
for (const job of jobs) {