Using CommonJS for slugify.
This commit is contained in:
@@ -43,7 +43,7 @@ const plainCharRegex = /[a-zA-Z0-9]/;
|
|||||||
const defaultPunctuationRegex = /[.,?!:;&'‘’"“”…()[]{}<>\/*—-]/;
|
const defaultPunctuationRegex = /[.,?!:;&'‘’"“”…()[]{}<>\/*—-]/;
|
||||||
const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
|
const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
|
||||||
|
|
||||||
export default function slugify(strings, delimiter = '-', {
|
module.exports = function slugify(strings, delimiter = '-', {
|
||||||
limit = 1000,
|
limit = 1000,
|
||||||
lower = true,
|
lower = true,
|
||||||
encode = false,
|
encode = false,
|
||||||
Reference in New Issue
Block a user