@mark1russell7/site-pages 0.4.7 → 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.
@@ -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: Infinity,
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 !== Infinity && space < start) {
1309
+ if (space !== 1e400 && space < start) {
1310
1310
  NEXT_SPACE.lastIndex = start;
1311
- space = NEXT_SPACE.exec(text)?.index ?? Infinity;
1311
+ space = NEXT_SPACE.exec(text)?.index ?? 1e400;
1312
1312
  }
1313
1313
  if (end === start || space < end) continue;
1314
1314
  }