seekstone 0.22.1 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -536,7 +536,7 @@ function parseFrontmatter(text) {
536
536
  // ../core/src/tasks.ts
537
537
  var TASK_RE = /^([ \t]*)([-*+]) \[(.)\](?: (.*))?$/;
538
538
  var HEADING_RE = /^(#{1,6})\s+(.+)/;
539
- var FENCE_RE = /^[ \t]*(`{3,}|~{3,})[ \t]*([^`]*)$/;
539
+ var FENCE_CLOSE_RE = /^[ \t]*(`{3,}|~{3,})[ \t]*$/;
540
540
  function extractTasks(raw) {
541
541
  const fm = parseFrontmatter(raw);
542
542
  const tasks = [];
@@ -549,10 +549,8 @@ function extractTasks(raw) {
549
549
  if (lineCharOffset < fm.bodyStart) continue;
550
550
  const line = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
551
551
  if (fence) {
552
- const close = FENCE_RE.exec(line);
553
- const closeMarker = close?.[1] ?? "";
554
- const closeTrailer = close?.[2] ?? "";
555
- if (closeMarker.startsWith(fence.char) && closeMarker.length >= fence.len && closeTrailer === "") {
552
+ const closeMarker = FENCE_CLOSE_RE.exec(line)?.[1] ?? "";
553
+ if (closeMarker.startsWith(fence.char) && closeMarker.length >= fence.len) {
556
554
  fence = null;
557
555
  }
558
556
  continue;
@@ -1952,11 +1950,11 @@ import { z as z12 } from "zod";
1952
1950
  import { posix } from "path";
1953
1951
  var WIKI_RE = /(!?)\[\[([^\]|#\n]{1,512})(#[^\]|\n]{1,512})?(\|[^\]\n]{1,512})?\]\]/g;
1954
1952
  var MD_RE = /(!?)\[([^\]\n]*)\]\(([^)\n]+)\)/g;
1955
- var FENCE_RE2 = /^\s*(```|~~~)/;
1953
+ var FENCE_RE = /^\s*(```|~~~)/;
1956
1954
  function mapUnfencedLines(raw, fn) {
1957
1955
  let inFence = false;
1958
1956
  return raw.split("\n").map((line) => {
1959
- if (FENCE_RE2.test(line)) {
1957
+ if (FENCE_RE.test(line)) {
1960
1958
  inFence = !inFence;
1961
1959
  return line;
1962
1960
  }
@@ -6157,7 +6155,7 @@ function startWatcher(ctx2, log2, opts) {
6157
6155
  }
6158
6156
 
6159
6157
  // src/index.ts
6160
- var VERSION = true ? "0.22.1" : "0.0.0-dev";
6158
+ var VERSION = true ? "0.22.3" : "0.0.0-dev";
6161
6159
  var intent = parseCliIntent(process.argv.slice(2));
6162
6160
  if (intent === "version") {
6163
6161
  process.stdout.write(`${VERSION}