Major rewrite for 0.1.6 - Dynamic database entry generation based on json files, dynamic run page generation and more
This commit is contained in:
parent
e75a575417
commit
7fe9e8c25f
28 changed files with 2954 additions and 45 deletions
src/utils
3
src/utils/slugTools.ts
Normal file
3
src/utils/slugTools.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function findSlug(filepath: string) {
|
||||
return filepath.match(/(?:.*[\\/])(.+)(?:\.json)/)?.[1]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue