We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74c045 commit 71e75fcCopy full SHA for 71e75fc
packages/opencode/src/config/markdown.ts
@@ -3,7 +3,8 @@ import matter from "gray-matter"
3
import { z } from "zod"
4
5
export namespace ConfigMarkdown {
6
- export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.#]*(?:\.[^\s`,.#]+)*)(?:#L(\d+)(?:-(\d+))?)?/g
+ export const FILE_REGEX =
7
+ /(?<![\w`])@(\.?(?:[^\s`,.#]|#(?!L\d))*(?:\.(?:[^\s`,.#]|#(?!L\d))+)*)(?:#L(\d+)(?:-(\d+))?)?/g
8
export const SHELL_REGEX = /!`([^`]+)`/g
9
10
export function files(template: string) {
0 commit comments