mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-05 00:44:54 +01:00
fix: bash regex (#2858)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export namespace ConfigMarkdown {
|
export namespace ConfigMarkdown {
|
||||||
export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.]*(?:\.[^\s`,.]+)*)/g
|
export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.]*(?:\.[^\s`,.]+)*)/g
|
||||||
export const SHELL_REGEX = /`[^`]+`/g
|
export const SHELL_REGEX = /!`([^`]+)`/g
|
||||||
|
|
||||||
export function files(template: string) {
|
export function files(template: string) {
|
||||||
return Array.from(template.matchAll(FILE_REGEX))
|
return Array.from(template.matchAll(FILE_REGEX))
|
||||||
|
|||||||
Reference in New Issue
Block a user