.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-parse / lib / locate / strong.js
1 'use strict';
2
3 module.exports = locate;
4
5 function locate(value, fromIndex) {
6   var asterisk = value.indexOf('**', fromIndex);
7   var underscore = value.indexOf('__', fromIndex);
8
9   if (underscore === -1) {
10     return asterisk;
11   }
12
13   if (asterisk === -1) {
14     return underscore;
15   }
16
17   return underscore < asterisk ? underscore : asterisk;
18 }