Updated Full Porn Network scraper.
This commit is contained in:
@@ -56,9 +56,7 @@ function slugify(string, delimiter = '-', {
|
||||
|
||||
if (accSlug.length < limit) {
|
||||
if (removeAccents) {
|
||||
return accSlug.replace(/[à-ÿ]/g, (match) => {
|
||||
return substitutes[match] || '';
|
||||
});
|
||||
return accSlug.replace(/[à-ÿ]/g, match => substitutes[match] || '');
|
||||
}
|
||||
|
||||
return accSlug;
|
||||
|
||||
Reference in New Issue
Block a user