summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/remark-parse/lib/locate/delete.js
blob: 1a892e1be7716ef027ce29912044ac7954d31882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @author Titus Wormer
 * @copyright 2015 Titus Wormer
 * @license MIT
 * @module remark:parse:locate:delete
 * @fileoverview Locate strikethrough.
 */

'use strict';

module.exports = locate;

function locate(value, fromIndex) {
  return value.indexOf('~~', fromIndex);
}