From 75e2b1c131882aa69f4d498f1aedbf8131b816ee Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sun, 3 Jan 2016 09:48:02 -0500 Subject: [PATCH] Improve keyword acquisition. --- src/core/fresh-resume.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/fresh-resume.js b/src/core/fresh-resume.js index c11c925..c44b526 100644 --- a/src/core/fresh-resume.js +++ b/src/core/fresh-resume.js @@ -224,11 +224,13 @@ Definition of the FRESHResume class. var flatSkills = []; if( this.skills ) { if( this.skills.sets ) { - flatSkills = flatSkills.concat( this.skills.sets.map(function(sk) { return sk.name; }) ); + flatSkills = this.skills.sets.map(function(sk) { return sk.skills; }) + .reduce(function(a,b) { return a.concat(b); }); } else if( this.skills.list ) { flatSkills = flatSkills.concat( this.skills.list.map(function(sk) { return sk.name; }) ); } + flatSkills = _.uniq( flatSkills ); } return flatSkills; },