datacite/bracco

View on GitHub
app/utils/check-for-tex.js

Summary

Maintainability
A
0 mins
Test Coverage
export default function checkForTex(text, hash) {
  let ret = false;

  if (text && text.match(/(?:\$|\\\(|\\\[|\\begin\{.*?})/)) {
    ret = true;
  }

  return ret;
}