mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: bash regex (#2858)
This commit is contained in:
parent
478ead6a05
commit
edeaab321a
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
export namespace ConfigMarkdown {
|
||||
export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.]*(?:\.[^\s`,.]+)*)/g
|
||||
export const SHELL_REGEX = /`[^`]+`/g
|
||||
export const SHELL_REGEX = /!`([^`]+)`/g
|
||||
|
||||
export function files(template: string) {
|
||||
return Array.from(template.matchAll(FILE_REGEX))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue