@mark1russell7/site-pages 0.4.6 → 0.4.8
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/build/chunks/build.js +3 -3
- package/build/chunks/build.js.map +1 -1
- package/build/chunks/freshness.js.map +1 -1
- package/build/explorer/index.d.ts +4 -0
- package/build/explorer/index.d.ts.map +1 -1
- package/build/explorer/index.js.map +1 -1
- package/build/index.d.ts +5 -0
- package/build/index.d.ts.map +1 -1
- package/package.json +10 -5
package/build/chunks/build.js
CHANGED
|
@@ -1243,7 +1243,7 @@ const STATUS_KEYWORDS = [
|
|
|
1243
1243
|
function statusClassOf(text) {
|
|
1244
1244
|
const lower = String(text ?? "").toLowerCase();
|
|
1245
1245
|
let best = {
|
|
1246
|
-
index:
|
|
1246
|
+
index: 1e400,
|
|
1247
1247
|
value: "open"
|
|
1248
1248
|
};
|
|
1249
1249
|
for (const [value, pattern] of STATUS_KEYWORDS) {
|
|
@@ -1306,9 +1306,9 @@ function replaceLinks(text, strict, replace) {
|
|
|
1306
1306
|
if (end < start) end = text.indexOf(")", start);
|
|
1307
1307
|
if (end === -1) break;
|
|
1308
1308
|
if (strict) {
|
|
1309
|
-
if (space !==
|
|
1309
|
+
if (space !== 1e400 && space < start) {
|
|
1310
1310
|
NEXT_SPACE.lastIndex = start;
|
|
1311
|
-
space = NEXT_SPACE.exec(text)?.index ??
|
|
1311
|
+
space = NEXT_SPACE.exec(text)?.index ?? 1e400;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (end === start || space < end) continue;
|
|
1314
1314
|
}
|