packages/remark-cq/index.js
function locateCodeImport(value, fromIndex) {
  var index = value.indexOf(C_NEWLINE, fromIndex);

  if (value.charAt(index + 1) !== "<" && value.charAt(index + 2) !== "<") {
    return;
  }

  return index;
}
function locateCodeImport(value, fromIndex) {
  var index = value.indexOf(C_NEWLINE, fromIndex);

  if (value.charAt(index + 1) !== "<" && value.charAt(index + 2) !== "<") {
    return;
  }

  return index;
}
function locateCodeImport ( value , fromIndex ) { var index = value . indexOf ( C_NEWLINE , fromIndex ) ; if ( value . charAt ( index + 1 ) !== "<" && value . charAt ( index + 2 ) !== "<" ) { return ; } return index ; }
Find a possible Code Imports

@example
locateCodeImport('foo \n<<[my-file.js](my-file.js)'); // 4

@param {string} value - Value to search.
@param {number} fromIndex - Index to start searching at.
@return {number} - Location of possible mention sequence.
Find a possible Code Imports