3 module.exports = locate;
5 function locate(value, fromIndex) {
6 var link = value.indexOf('[', fromIndex);
7 var image = value.indexOf('![', fromIndex);
13 /* Link can never be `-1` if an image is found, so we don’t need
14 * to check for that :) */
15 return link < image ? link : image;