@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/source.js
CHANGED
|
@@ -264,6 +264,7 @@ function isMathShape(content) {
|
|
|
264
264
|
const words = content.match(/[A-Za-z]+/g);
|
|
265
265
|
if (!words) return false;
|
|
266
266
|
if (!words.every((w) => w.length === 1 || FUNCTION_NAMES.has(w))) return false;
|
|
267
|
+
if (/[A-Za-z]'+[A-Za-z]/.test(content) || /(?:^|[\s(,])[A-Za-z]\.(?:[A-Za-z]\.|\s|$)/.test(content)) return false;
|
|
267
268
|
return /[A-Za-z]'*\(|[A-Za-z]'|\b[A-Za-z]\s+[A-Za-z]\b|\([^)]*[A-Za-z][^)]*\)/.test(content);
|
|
268
269
|
}
|
|
269
270
|
function isSingleDollarMath(content, after) {
|