mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-06-24 13:39:28 +02:00
6 lines
113 B
JavaScript
6 lines
113 B
JavaScript
const fileToTitle = (str) => (
|
|
str.replace(/^\d+_/, '').replace(/_/g, ' ')
|
|
);
|
|
|
|
module.exports = fileToTitle;
|