.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-parse / lib / locate / break.js
1 'use strict';
2
3 module.exports = locate;
4
5 function locate(value, fromIndex) {
6   var index = value.indexOf('\n', fromIndex);
7
8   while (index > fromIndex) {
9     if (value.charAt(index - 1) !== ' ') {
10       break;
11     }
12
13     index--;
14   }
15
16   return index;
17 }