forked from DebaucheryLibrarian/traxxx
Generalized Team Skeet scraper, added MYLF network and various Team Skeet partner channels.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
function getRecursiveParameters(entity, parameters) {
|
||||
if (entity.parent) {
|
||||
return getRecursiveParameters(entity.parent, { ...parameters, ...entity.parameters });
|
||||
return getRecursiveParameters(entity.parent, { ...entity.parameters, ...parameters });
|
||||
}
|
||||
|
||||
return { ...parameters, ...entity.parameters };
|
||||
return { ...entity.parameters, ...parameters };
|
||||
}
|
||||
|
||||
module.exports = getRecursiveParameters;
|
||||
|
||||
@@ -49,7 +49,7 @@ function slugify(string, delimiter = '-', {
|
||||
const slugComponents = string
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(removePunctuation && /[.,:;'"]/g, '')
|
||||
.replace(removePunctuation && /[.,:;'"_-]/g, '')
|
||||
.match(/[A-Za-zÀ-ÖØ-öø-ÿ0-9]+/g);
|
||||
|
||||
if (!slugComponents) {
|
||||
|
||||
Reference in New Issue
Block a user