forked from FoundKeyGang/FoundKey
✌️
This commit is contained in:
parent
169b99a358
commit
fae40ad1dd
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default function() {
|
||||||
title: {}
|
title: {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
vars['docs'][name]['title'][lang] = fs.readFileSync(x, 'utf-8').match(/\r\n\th1 (.+?)\r\n/)[1];
|
vars['docs'][name]['title'][lang] = fs.readFileSync(x, 'utf-8').match(/\r?\n\th1 (.+?)\r?\n/)[1];
|
||||||
});
|
});
|
||||||
|
|
||||||
vars['kebab'] = string => string.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/\s+/g, '-').toLowerCase();
|
vars['kebab'] = string => string.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/\s+/g, '-').toLowerCase();
|
||||||
|
|
Loading…
Reference in a new issue