Corde organization

This commit is contained in:
Simon Cambier
2022-04-12 07:30:32 +02:00
parent 7316bbaa53
commit 9e885cedc4
3 changed files with 88 additions and 80 deletions

4
src/globals.ts Normal file
View File

@@ -0,0 +1,4 @@
// Matches a wikiling that begins a string
export const regexWikilink = /^!?\[\[(?<name>.+?)(\|(?<alias>.+?))?\]\]/
export const regexLineSplit = /\r?\n|\r|((\.|\?|!)( |\r?\n|\r))/g
export const regexYaml = /^---\s*\n(.*?)\n?^---\s?/ms