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