Using CommonJS for slugify.
This commit is contained in:
parent
0c9917fc27
commit
b2305966ed
|
|
@ -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,
|
||||||
Loading…
Reference in New Issue