@ai-matrx/content-ir 0.18.2 → 0.18.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/source.cjs +18 -7
- package/dist/source.cjs.map +1 -1
- package/dist/source.js +18 -7
- package/dist/source.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.3
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/content-ir-core/v0.18.2..npm/content-ir-core/v0.18.3 -- apps/shared/content-ir-core`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.18.2 — 2026-09-25
|
|
4
10
|
|
|
5
11
|
**Carries: RC-B10 only.** Three helpers on THE one code-range rule, so every
|
package/dist/index.cjs
CHANGED
|
@@ -5488,16 +5488,27 @@ var BacktickRuns = class {
|
|
|
5488
5488
|
}
|
|
5489
5489
|
};
|
|
5490
5490
|
function codeSpans(text, from, to, out) {
|
|
5491
|
-
|
|
5492
|
-
for (let
|
|
5493
|
-
const
|
|
5494
|
-
|
|
5491
|
+
let runs = null;
|
|
5492
|
+
for (let i = from; i < to; ) {
|
|
5493
|
+
const ch = text.charCodeAt(i);
|
|
5494
|
+
if (ch === 92) {
|
|
5495
|
+
i += 2;
|
|
5496
|
+
continue;
|
|
5497
|
+
}
|
|
5498
|
+
if (ch !== 96) {
|
|
5499
|
+
i++;
|
|
5500
|
+
continue;
|
|
5501
|
+
}
|
|
5502
|
+
const n = backtickRunLength(text, i);
|
|
5503
|
+
const len = Math.min(n, to - i);
|
|
5504
|
+
runs ??= new BacktickRuns(text, from, to);
|
|
5505
|
+
const close = runs.next(len, i + len);
|
|
5495
5506
|
if (close === -1) {
|
|
5496
|
-
|
|
5507
|
+
i += len;
|
|
5497
5508
|
continue;
|
|
5498
5509
|
}
|
|
5499
|
-
out.push({ start, end: close +
|
|
5500
|
-
|
|
5510
|
+
out.push({ start: i, end: close + len, kind: "span" });
|
|
5511
|
+
i = close + len;
|
|
5501
5512
|
}
|
|
5502
5513
|
}
|
|
5503
5514
|
function findCodeRanges(text) {
|