Create scripts/store/setters

This commit is contained in:
Aleksandr Statciuk committed 2021-12-12 07:12:06 +03:00
1 parent df6af6dec0
commit 7255ab8335
13 files changed
+156

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
const normalize = require('normalize-url')
module.exports = function ({ url }) {
const normalized = normalize(url, { stripWWW: false })
return decodeURIComponent(normalized).replace(/\s/g, '+')
}