|
|
@ -554,10 +554,17 @@ const Wappalyzer = {
|
|
|
|
return technology[type].reduce((technologies, pattern) => {
|
|
|
|
return technology[type].reduce((technologies, pattern) => {
|
|
|
|
const startTime = Date.now()
|
|
|
|
const startTime = Date.now()
|
|
|
|
|
|
|
|
|
|
|
|
if (pattern.regex.test(value)) {
|
|
|
|
const matches = pattern.regex.exec(value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (matches) {
|
|
|
|
technologies.push({
|
|
|
|
technologies.push({
|
|
|
|
technology,
|
|
|
|
technology,
|
|
|
|
pattern: { ...pattern, type, value },
|
|
|
|
pattern: {
|
|
|
|
|
|
|
|
...pattern,
|
|
|
|
|
|
|
|
type,
|
|
|
|
|
|
|
|
value,
|
|
|
|
|
|
|
|
match: matches[0],
|
|
|
|
|
|
|
|
},
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -581,10 +588,17 @@ const Wappalyzer = {
|
|
|
|
patterns.forEach((pattern) => {
|
|
|
|
patterns.forEach((pattern) => {
|
|
|
|
const startTime = Date.now()
|
|
|
|
const startTime = Date.now()
|
|
|
|
|
|
|
|
|
|
|
|
if (pattern.regex.test(value)) {
|
|
|
|
const matches = pattern.regex.exec(value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (matches) {
|
|
|
|
technologies.push({
|
|
|
|
technologies.push({
|
|
|
|
technology,
|
|
|
|
technology,
|
|
|
|
pattern: { ...pattern, type, value },
|
|
|
|
pattern: {
|
|
|
|
|
|
|
|
...pattern,
|
|
|
|
|
|
|
|
type,
|
|
|
|
|
|
|
|
value,
|
|
|
|
|
|
|
|
match: matches[0],
|
|
|
|
|
|
|
|
},
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -618,10 +632,17 @@ const Wappalyzer = {
|
|
|
|
values.forEach((value) => {
|
|
|
|
values.forEach((value) => {
|
|
|
|
const startTime = Date.now()
|
|
|
|
const startTime = Date.now()
|
|
|
|
|
|
|
|
|
|
|
|
if (pattern.regex.test(value)) {
|
|
|
|
const matches = pattern.regex.exec(value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (matches) {
|
|
|
|
technologies.push({
|
|
|
|
technologies.push({
|
|
|
|
technology,
|
|
|
|
technology,
|
|
|
|
pattern: { ...pattern, type, value },
|
|
|
|
pattern: {
|
|
|
|
|
|
|
|
...pattern,
|
|
|
|
|
|
|
|
type,
|
|
|
|
|
|
|
|
value,
|
|
|
|
|
|
|
|
match: matches[0],
|
|
|
|
|
|
|
|
},
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
version: Wappalyzer.resolveVersion(pattern, value),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|