fix: replace . with - in slugs (#39168)
This commit is contained in:
committed by
GitHub
parent
7ed1d52001
commit
52ecb14b0f
@@ -2,7 +2,7 @@ exports.dasherize = function dasherize(name) {
|
||||
return ('' + name)
|
||||
.toLowerCase()
|
||||
.trim()
|
||||
.replace(/\s/g, '-')
|
||||
.replace(/\s|\./g, '-')
|
||||
.replace(/[^a-z\d\-.]/g, '');
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user