mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
274 B
16 lines
274 B
8 years ago
|
/**
|
||
|
* @author Titus Wormer
|
||
|
* @copyright 2015 Titus Wormer
|
||
|
* @license MIT
|
||
|
* @module remark:parse:locate:escape
|
||
|
* @fileoverview Locate an escape.
|
||
|
*/
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = locate;
|
||
|
|
||
|
function locate(value, fromIndex) {
|
||
|
return value.indexOf('\\', fromIndex);
|
||
|
}
|