3 module.exports = locate;
5 function locate(value, fromIndex) {
6 var asterisk = value.indexOf('*', fromIndex);
7 var underscore = value.indexOf('_', fromIndex);
9 if (underscore === -1) {
13 if (asterisk === -1) {
17 return underscore < asterisk ? underscore : asterisk;