This commit is contained in:
Dax Raad
2025-09-27 02:53:20 -04:00
parent ffe37d6d98
commit 56d0e8acbf
8 changed files with 483 additions and 188 deletions
+12
View File
@@ -0,0 +1,12 @@
export namespace ConfigMarkdown {
export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.]*(?:\.[^\s`,.]+)*)/g
export const SHELL_REGEX = /`[^`]+`/g
export function files(template: string) {
return Array.from(template.matchAll(FILE_REGEX))
}
export function shell(template: string) {
return Array.from(template.matchAll(SHELL_REGEX))
}
}