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