@ai-matrx/content-ir 0.14.0 → 0.14.1
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 +14 -0
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/source.cjs +1 -0
- package/dist/source.cjs.map +1 -1
- package/dist/source.js +1 -0
- package/dist/source.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5233,6 +5233,7 @@ function isMathShape(content) {
|
|
|
5233
5233
|
const words = content.match(/[A-Za-z]+/g);
|
|
5234
5234
|
if (!words) return false;
|
|
5235
5235
|
if (!words.every((w) => w.length === 1 || FUNCTION_NAMES.has(w))) return false;
|
|
5236
|
+
if (/[A-Za-z]'+[A-Za-z]/.test(content) || /(?:^|[\s(,])[A-Za-z]\.(?:[A-Za-z]\.|\s|$)/.test(content)) return false;
|
|
5236
5237
|
return /[A-Za-z]'*\(|[A-Za-z]'|\b[A-Za-z]\s+[A-Za-z]\b|\([^)]*[A-Za-z][^)]*\)/.test(content);
|
|
5237
5238
|
}
|
|
5238
5239
|
function isSingleDollarMath(content, after) {
|