#154 - filter by file extension

This commit is contained in:
Simon Cambier
2023-02-11 15:43:01 +01:00
parent 48c9efcedc
commit 8c78c91cc3
3 changed files with 29 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ export const regexLineSplit = /\r?\n|\r|((\.|\?|!)( |\r?\n|\r))/g
export const regexYaml = /^---\s*\n(.*?)\n?^---\s?/ms
export const regexStripQuotes = /^"|"$|^'|'$/g
export const chsRegex = /[\u4e00-\u9fa5]/
export const regexExtensions = /(?:^|\s)\.(\w+)/g
export const excerptBefore = 100
export const excerptAfter = 300