@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/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) {