mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
fix track regex matching
This commit is contained in:
parent
1b991b5492
commit
5b16a0a42e
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ export async function fetchAll(filePath: string): Promise<z.infer<typeof TrackSt
|
||||||
const lines = content.split('\n');
|
const lines = content.split('\n');
|
||||||
const blocks: z.infer<typeof TrackStateSchema>[] = [];
|
const blocks: z.infer<typeof TrackStateSchema>[] = [];
|
||||||
let i = 0;
|
let i = 0;
|
||||||
const contentFenceStartMatcher = /<!--track-target:(\w+)-->/;
|
const contentFenceStartMatcher = /<!--track-target:(.+)-->/;
|
||||||
const contentFenceEndMatcher = /<!--\/track-target:(\w+)-->/;
|
const contentFenceEndMatcher = /<!--\/track-target:(.+)-->/;
|
||||||
while (i < lines.length) {
|
while (i < lines.length) {
|
||||||
if (lines[i].trim() === '```track') {
|
if (lines[i].trim() === '```track') {
|
||||||
const fenceStart = i;
|
const fenceStart = i;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue