Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -51,7 +51,7 @@ export default function slugify(strings, delimiter = '-', {
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(removePunctuation && /[.,:;'"_-]/g, '')
|
||||
.match(/[A-Za-zÀ-ÖØ-öø-ÿ0-9]+/g));
|
||||
.match(/[A-Za-zÀ-ÖØ-öø-ÿ0-9]+/g)); // eslint-disable-line regexp/no-obscure-range -- intentional accented-Latin range for slugification
|
||||
|
||||
if (!slugComponents) {
|
||||
return '';
|
||||
@@ -62,7 +62,7 @@ export default function slugify(strings, delimiter = '-', {
|
||||
|
||||
if (accSlug.length < limit) {
|
||||
if (removeAccents) {
|
||||
return accSlug.replace(/[à-ÿ]/g, (match) => substitutes[match] || '');
|
||||
return accSlug.replace(/[à-ÿ]/g, (match) => substitutes[match] || ''); // eslint-disable-line regexp/no-obscure-range -- intentional accented-Latin range for slugification
|
||||
}
|
||||
|
||||
return accSlug;
|
||||
|
||||
Reference in New Issue
Block a user