mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
103 lines
4.8 KiB
Diff
103 lines
4.8 KiB
Diff
diff --git a/dist/index.cjs b/dist/index.cjs
|
||
index 283575c0a81fa24ea2d73cb8096de05bce7ab26b..c7b19bda70eececb4688250f8bd11cbe6db6a9aa 100644
|
||
--- a/dist/index.cjs
|
||
+++ b/dist/index.cjs
|
||
@@ -245,10 +245,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|
||
diff --git a/dist/index.js b/dist/index.js
|
||
index 1fa29e72a755ce527b1840765bbe44e80df38c3d..9a857225b17a51fa6afd14674502e556566bef8c 100644
|
||
--- a/dist/index.js
|
||
+++ b/dist/index.js
|
||
@@ -233,10 +233,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|
||
diff --git a/dist/kit/index.cjs b/dist/kit/index.cjs
|
||
index a1f217bd0eb67c84404a4e4b447379eaf3a7f367..1f26c89d35a87bcd98113ad425245a9d86cb7ef0 100644
|
||
--- a/dist/kit/index.cjs
|
||
+++ b/dist/kit/index.cjs
|
||
@@ -233,10 +233,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|
||
diff --git a/dist/kit/index.js b/dist/kit/index.js
|
||
index ee2b2a9114cb40daa6061340ccd80d128c2981ba..8152d964a20dfac20fc3234f93182325593d027d 100644
|
||
--- a/dist/kit/index.js
|
||
+++ b/dist/kit/index.js
|
||
@@ -232,10 +232,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|
||
diff --git a/dist/ordered-list/index.cjs b/dist/ordered-list/index.cjs
|
||
index 9373d830293b67e463c9764cec5bacd8c189b473..4292a2b0f1b45fdc0f06d6fe7f351f7484e45974 100644
|
||
--- a/dist/ordered-list/index.cjs
|
||
+++ b/dist/ordered-list/index.cjs
|
||
@@ -19,10 +19,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|
||
diff --git a/dist/ordered-list/index.js b/dist/ordered-list/index.js
|
||
index ace73267067e8c785e080cbf5bc6655a0527aa36..de1bb3061ec1629b20616f10a42eeba0a4e2222d 100644
|
||
--- a/dist/ordered-list/index.js
|
||
+++ b/dist/ordered-list/index.js
|
||
@@ -18,10 +18,9 @@ const ROMAN_NUMERALS = [
|
||
];
|
||
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
||
/**
|
||
-* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
||
-* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
||
+* Orca patch: ordered-list markers are digits only, as in CommonMark, so "Dr." and "A." stay prose.
|
||
*/
|
||
-const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
||
+const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+`;
|
||
/**
|
||
* Convert a number to lowercase roman numerals.
|
||
* @example toRoman(1) // 'i'
|