fafd1ef658
• Added: - pages and routes for Groups by tag and category
8 lines
283 B
JavaScript
8 lines
283 B
JavaScript
// https://github.com/danny-wood/unslugify/blob/master/index.js
|
|
export default function unslugify(text) {
|
|
const result = `${text}`.replace(/\-/g, " ");
|
|
return result.replace(/\w\S*/g, function (txt) {
|
|
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
|
|
});
|
|
}
|