diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index b2475823a..51f180350 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -998,7 +998,7 @@ class Site { patterns, { technology: { name, implies, excludes }, - pattern: { regex, confidence, type, version }, + pattern: { regex, value, confidence, type, version }, } ) => { patterns[name] = patterns[name] || [] @@ -1006,6 +1006,7 @@ class Site { patterns[name].push({ type, regex: regex.source, + value: value.length <= 250 ? value : null, confidence, version, implies: implies.map(({ name }) => name), diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 22db3e680..2d41342f5 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -557,7 +557,7 @@ const Wappalyzer = { if (pattern.regex.test(value)) { technologies.push({ technology, - pattern: { ...pattern, type }, + pattern: { ...pattern, type, value }, version: Wappalyzer.resolveVersion(pattern, value), }) } @@ -584,7 +584,7 @@ const Wappalyzer = { if (pattern.regex.test(value)) { technologies.push({ technology, - pattern: { ...pattern, type }, + pattern: { ...pattern, type, value }, version: Wappalyzer.resolveVersion(pattern, value), }) } @@ -621,7 +621,7 @@ const Wappalyzer = { if (pattern.regex.test(value)) { technologies.push({ technology, - pattern: { ...pattern, type }, + pattern: { ...pattern, type, value }, version: Wappalyzer.resolveVersion(pattern, value), }) }