initialize project structure with core modules and configuration
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
function normalizeTitle(title) {
|
||||
return String(title || '')
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9\s]/g, ' ')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
normalizeTitle,
|
||||
};
|
||||
Reference in New Issue
Block a user