2018-09-30 23:01:58 +01:00
|
|
|
exports.dasherize = function dasherize(name) {
|
2018-05-21 14:56:49 +01:00
|
|
|
return ('' + name)
|
|
|
|
.toLowerCase()
|
|
|
|
.replace(/\s/g, '-')
|
|
|
|
.replace(/[^a-z0-9\-\.]/gi, '')
|
|
|
|
.replace(/\:/g, '');
|
2018-10-04 17:36:00 +01:00
|
|
|
};
|
|
|
|
|
2018-10-09 20:26:37 +01:00
|
|
|
const supportedLangs = ['english', 'spanish'];
|
2018-10-04 17:36:00 +01:00
|
|
|
exports.supportedLangs = supportedLangs;
|